| ▲ | inkysigma a day ago | |
Suppose you had the ability to get the kth prime in constant time. The number of primes below x is roughly x/log(x) by PNT so for b bits it’s 2^b/log(2^b) = 2^b / b. Thus you would have to check exponentially many divisors. You can reduce this by only checking up to sqrt(x) but this would still be exponential in the number of bits. Naively, this is why getting a function for the next prime doesn’t lead immediately to factoring in P, the proposal doesn’t work without significantly more ideas to improve the factoring. | ||