Functions for approximating the prime constant (the constant whose $n$th bit is 1 if and only if $n$ is prime).