﻿ Pie Flash — Keep Talking and Nobody Explodes Module

## On the Subject of Pie Flash

Oh, these aren't homemade, they were made in a factory. A bomb factory. They're bombs.

See Appendix π for pi identification reference.

A Pie Flash module repeatedly flashes between three different sequences of five consecutive digits within the first 500 digits of pi (π). The digits are ordered from left to right.

For each of the three sequences, search for the position of the first digit. Add the sum of these positions to the average of the numbers displayed on the module. Round down to the nearest integer. Take this number modulo 100. This result will be referred to as the number X.

Add up the third digit of the first number, the first digit of the second number, and the fourth digit of the third number, then take the least significant digit. This digit will be referred to as the number Y.

Find the sum of the digital roots of the positions of each number's first digit. This digit will be referred to as the number Z.

Follow all the rules below from top to bottom, pressing each digit only once:

1. If X and Y are either both prime numbers or both composite numbers, press the fifth digit.
2. If X and Z are either both even or both odd, press the fourth digit.
3. If Y and Z are multiples of three, press the third digit.
4. If Z is greater than 10, Y is not zero, and X is a multiple of Y, press the second digit.
5. Press all the digits that are not pressed yet from left to right, starting from the first digit.

## Appendix π: Pi Identification Reference

Here are the first 500 significant digits of pi.

31415926535897932384
62643383279502884197
16939937510582097494
45923078164062862089
98628034825342117067
98214808651328230664
70938446095505822317
25359408128481117450
28410270193852110555
96446229489549303819
64428810975665933446
12847564823378678316
52712019091456485669
23460348610454326648
21339360726024914127
37245870066063155881
74881520920962829254
09171536436789259036
00113305305488204665
21384146951941511609
43305727036575959195
30921861173819326117
93105118548074462379
96274956735188575272
48912279381830119491