EmersonT1

Recurring

This program was a project I made when I was first learning C++, to solve a maths problem. Some prime numbers' reciprocals had a recurring chain length of one less than the number which meant that this happened:

$$1/7 = 0.\overline{142857}$$ $$2/7 = 0.\overline{285714}$$ $$3/7 = 0.\overline{428571}$$ $$4/7 = 0.\overline{571428}$$ $$5/7 = 0.\overline{714285}$$ $$6/7 = 0.\overline{857142}$$

The chain is the same, but offset by a number of digits. I ran the program to find all the prime numbers up to 67 million that applied to this rule. Displayed Below are all the values under 100:

$$7, 17, 19, 23, 29, 47, 59, 61, 97$$

Gitlab Link