Structs§
- IsPrime
Function IS_PRIME(n)
- Check if a number is prime- Next
Prime Function NEXT_PRIME(n)
- Find the next prime >= n- NthPrime
Function NTH_PRIME(n)
- Alias for PRIME function (more descriptive name)- Prev
Prime Function PREV_PRIME(n)
- Find the previous prime <= n- Prime
Count Function PRIME_COUNT(n)
- Count primes up to n- Prime
Engine - Engine for prime number operations
- Prime
Function - PRIME(n) - Returns the nth prime number
- Prime
PiFunction PRIME_PI(n)
- Alias for PRIME_COUNT (standard mathematical notation π(n))
Constants§
- PRIMES_
1K - First 1,000 prime numbers (up to 7,919)
- PRIMES_
10K - First 10,000 prime numbers (up to 104,729)
- PRIMES_
100K - First 100,000 prime numbers (up to 1,299,709)