An explicit formula for the prime numbers.
Extremely clever. It essentially expresses a program as a function evaluation, using only very simple functions as building blocks.
Conversation
At first I thought the cosine might be related to the prime counting function.
It’s actually used to get an indicator variable for when its argument is an integer. The video explains.
Quote Tweet
In 1964, C.P. Willans found this exact(!) formula for the primes.
Watch @ericrowland nicely explain how it works and why it's kinda useless...
youtu.be/j5s0h42GfvM



