7.1.18 Counting pseudo-primes less than or equal to n
The nprimes command
counts the number of pseudo-primes less than or equal to a given target.
-
nprimes takes
n, a non-negative integer.
- nprimes(n) returns the number of pseudo-primes (or
primes) less than or equal to n.
Examples