In 1964, C.P. Willans found this exact(!) formula for the primes.
Watch nicely explain how it works and why it's kinda useless...
youtu.be/j5s0h42GfvM
Conversation
An algorithm with (at first glance) O(2^n) complexity does appear a bit impractical, even if it looks cool.
1
17
This formula looks like my checkbook after I've tried to balance it 😜
2
Bruh! You can't simply call this a prime number generator! It's cheating..
Still i am impressed by the way it's deviced. It isn't beautifull, but perfect!
1
1
Is this related to Farey sequences and the work of Franel on the Riemann hypothesis?
1
2
That factorial (!) is gonna grow real big, real fast.
1
4










