Module jmath

Source
Expand description

math

Structs§

Primes

Functions§

digits
Returns the digits of the given number.
digits_from_str
Returns the decimal digits inside a string.
factorial
Returns the factorial of the given number.
factorial_bigint
Returns the factorial of the given number as a BigInt.
get_collatz_sequence
Returns the Collatz sequence of the given number.
get_divisors
Returns the divisors of the given number.
get_prime_divisors
Returns the prime divisors of the given number.
get_primes_below
Returns all the primes below the given number.
get_proper_divisors
Returns the proper divisors of the given number n.
is_palindrome
Returns true if the given number is palindrome.
is_prime
Returns true if the given number is prime.