Hacker News new | ask | show | jobs
by Ar-Curunir 970 days ago
There is literally an entirely deterministic algorithm for checking primality, so you can be 100% sure that a randomly-generated number is prime: https://en.wikipedia.org/wiki/AKS_primality_test