- March 14, 2016

Today is a special day, it’s Pi Day! For those who write month first then day, this is indeed the 3/14 day, like the beginning of the irrational number digits.

Wikipedia explains that:

The number π is a mathematical constant, the ratio of a circle’s circumference to its diameter, commonly approximated as 3.14159. It has been represented by the Greek letter “π” since the mid-18th century, though it is also sometimes spelled out as “pi”.

To celebrate Pi Day, I decided to build “a Pi” API… And please notice how the API acronym actually contains “a Pi”! What a coincidence! Oh yes… pun intended, sorry! The API is hosted on the APISpark platform, Restlet’s API backend.

I found a page from the MIT website that allows you to download the first billion digits of Pi! And I decided to split those digits by pages of thousands of digits, so that will return the first page of a thousand digits, the next page of another thousand digits, etc.

So my Pi API contains a million pages of thousand digits of Pi! A gigabyte of data to have fun with!

Now, the challenge…


If you want to win the brand new Raspberry Pi 3, with a 1.2GHz 64-bit quad-core, built-in Wifi and Bluetooth, you’ll have to:

  1. Register for an account on the Restlet platform, by clicking on the “sign in” link, in the top right hand corner of the page, and be sure to note the email address you’ve used to sign up.
  2. And tell us in which pages the sequence 12345 appears in the first million digits of Pi! Be careful, I don’t want only the first page where this sequence appears, but I want all the page numbers where this sequence is present! Fortunately, you won’t have to go through all the digits, you only have to search among the first 1000 pages, ie. in the first million digits of Pi.

Have a great Pi Day everyone! 

And head over to the Pi API page for all the details, and how to submit your findings, to get a chance to win the brand new Raspberry Pi 3! You’ll also be able to use DHC to discover and call the API. I’ll give you about a week before wrapping up the contest! So let’s the Pi digit hunt begin!