Liking cljdoc? Tell your friends :D

com.hypirion.primes


factorizeclj

(factorize n)

Returns an unmodifiable list of prime factors in n. Will return 1 for n = 1.

Returns an unmodifiable list of prime factors in n. Will return 1 for n = 1.
sourceraw docstring

first-aboveclj

(first-above n)

Returns the lowest prime above n.

Returns the lowest prime above n.
sourceraw docstring

getclj

(get n)

Returns the nth prime number.

Returns the nth prime number.
sourceraw docstring

last-belowclj

(last-below n)

Returns the highest prime below n.

Returns the highest prime below n.
sourceraw docstring

prime?clj

(prime? n)

Checks whether an integer (long or lower) is a prime. Returns true if yes, false otherwise.

Checks whether an integer (long or lower) is a prime. Returns true if yes,
false otherwise.
sourceraw docstring

primesclj

(primes)

Returns a lazy sequence of all primes in sorted order.

Returns a lazy sequence of all primes in sorted order.
sourceraw docstring

takeclj

(take n)

Returns the n first primes as an unmodifiable list.

Returns the n first primes as an unmodifiable list.
sourceraw docstring

take-belowclj

(take-below n)

Returns all primes below n as an unmodifiable list.

Returns all primes below n as an unmodifiable list.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close