primeZ
A fast prime library written in Zig. These queries run the real, native code on the server.
Count primes π(x)
Lucy_Hedgehog counting in O(x3/4), the reference algorithm from Kim Walisch’s primecount. Up to 1012.
Count by sieving
The same count by segmented sieve, to compare both. Up to 1011.
Is it prime?
Deterministic Miller–Rabin for any 64-bit number.
The n-th prime
Up to the 109-th.