On the Subject of Pie
What is the point of naming this module 'pie' if there is no pie?! The pie is a lie!
See Appendix π for pi identification reference.
A Pie module shows five consecutive significant digits within the first 500 digits of pi (π). The digits are ordered from left to right.
Search for the position of the first digit, from which the five digits begin. Add this position to the number displayed on the module. Take this sum modulo 100. This result will be referred to as the number X.
Add up all five displayed digits, then take the least significant digit. This digit will be referred to as the number Y.
Follow all the rules below from top to bottom, pressing each digit only once:
- If X is a prime number, press the first digit.
- If X and Y are either both even or both odd, press the second digit.
- If X is a multiple of three, press the third digit.
- If Y is not zero, and X is a multiple of Y, press the fourth digit.
- Press all the digits that are not pressed yet from right to left, starting from the fifth digit.