Unofficial Hacker News companion — reply notifications without a password. · Learn more

Rumors swirling that labs might have cracked Factoring in P (opens external site)

518 points by lilytweed 5 days ago | www.reddit.com | 384 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. 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.