\$\pi\$ is supposed to be infinite. That means every number is contained inside the decimal part of \$\pi\$. Your task will be to take a positive integer on input and return the position of this number in \$\pi\$ digits on output.
For example, if the input is
59, we'll return
Here is why : we will look for the number
59 in the digits of \$\pi\$
The value starts at the 4th digit, so the output will be
Some other examples :
input : 1 output : 1 input : 65 output : 7 input : 93993 output : 42 input : 3 output : 9
- You don't have to handle digits that doesn't exist within the first 200 digits
- Standard loopholes are, as always, forbidden.
- This is codegolf, so the fewer bytes wins.
n'th index? So the text cases would return
0, 6, 41, 8instead of
1, 7, 42, 9. \$\endgroup\$