Peek in Pi

Did you know that for any 7 digit number you can think of, there's a 99.995% chance that it's found in the first 100 million digits of pi? Our mathematical obsession has boiled over into “Peek in Pi,” an app that lets you search for any number inside the digits of π.

Update 3/14/2017A new online version searches the first 10 million digits from the comfort of your web browser (desktop or mobile). No installation necessary! Or for more digits, use the apps below. Happy π day!

Update 4/12/2016Peek in Pi is now available for purchase as a watch face for Android Wear devices. Install it from the Google Play Store.

A version for Android phones and tablets is available from Google Play. After initially rejecting the app as “not useful,” Apple relented and posted it to the iTunes Store. The app was designed for mobile devices (phones, tablets), but we made a desktop version as well. It's available for Mac, Windows, and Linux.

Searching for numbers in π works on the premise that you can treat the individual digits as essentially a random sequence. With than in mind, it's possible to calculate the chances of finding a set of digits of a given length:

These numbers were taken from this description of the math involved. Also from that page, this is the equation for how you calculate the number of digits:

We look forward to making further updates to explain how π works, and no doubt we also need to add a premium version that includes a billion digits instead of the miserly 100 million we're offering now.

We first showed the app publicly at the Eyeo Festival back in 2012. You can see Ben talking about it here.

Happy searching!