top | item 38057490

(no title)

akarve | 2 years ago

> If you just make up a number claim it’s prime and nobody disputes it

You can test if a number is prime in polynomial time, much faster than a sieve. There’s no need to test every divisor to know whether a number is prime or not.

Algos like RSA generate large primes millions of times every day—-there’s nothing to take on faith.

discuss

order

test77777|2 years ago

I’d argue that you’re just misunderstanding what makes a number prime. You can literally never be 100% sure a randomly generated number is or isn’t prime, it’s just the way numbers work.

magneticnorth|2 years ago

I think you have some confusion about RSA cryptography - it relies on numbers that are deliberately generated using very large (known) primes, so these numbers are definitely not "randomly generated".

It takes a short time to generate such a number but a very long time to decompose it, but this is a different problem than telling whether a number is prime.

JonChesterfield|2 years ago

Counterexample, roll a dice. That gives you a randomly generated number. You can then test whether said random number is prime by enumeration.

adgjlsfhk1|2 years ago

you absolutely can. aks is a polynomial time deterministic primality check.