integer-signextend
Sign extend variable bit-width integer to 32-bit integer.
Sign extend variable bit-width integer to 32-bit integer.
Swap bit sequences in 32-bit integer (xor method).
Extra methods for 32-bit integer.
Check if value is 32-bit integer.
Get log base 10 of 32-bit integer (log2 method).
Get log base 2 of 32-bit integer (DeBruijn method).
Get next power-2 of 32-bit integer ().
RegExp for matching integer (decimal, hexadecimal).
RegExp for matching hexdecimal integer.
A collection of javascript helper functions for fast vector math and more.
A fork of Peter Olson's BigInter library that always assumes native BigInt is not supported.
Approximate the logarithm base 10 of a small integer.
Find all indexes at which an array element exists, by binary search.
Big Integer
Check if a number is composite
Returns true if the given number is 8, false otherwise.
Returns true if the given number is 5, false otherwise.
Returns true if the given number is 4, false otherwise.
Returns true if the given number is 9, false otherwise.
Returns true if the given number is 1, false otherwise.