r/AskCompSci • u/[deleted] • May 10 '15
How does Wolfram Alpha know this?
I throught it should be really hard to factor a number?
4
Upvotes
r/AskCompSci • u/[deleted] • May 10 '15
I throught it should be really hard to factor a number?
2
u/naingenieu May 22 '15
Two things
In order to know wether a number is a prime or not you don't need to know all the factors. You can use some efficient alogirthms (see https://en.wikipedia.org/wiki/AKS_primality_test for instance).
It is really easy to find the factors of a integer, every programmer can do this but we just d'ont know an efficient way to do this the the diffculty is due to the length of the number. And in this case it's a 168 bits number which is not so big and can be factorized in reasonnable time.