Find the first
digit prime in consecutive digits of
.
This problem was inspired by Agnishom's problem: Google,Euler's Number and the Hidden Prime .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Ah, Nice!
Some Mathematica Code:
This solution was inspired by Agnishom's solution of the other problem :P
Because the reader has already solved this problem, the linked problem should not be anymore troublesome to him. It is suggested that he reads the explanation of the code there.
Here is some sage code:
Sage is a powerful free software alternate. You can try Sage at http://sagenb.org online without having to download anything. Sage is built upon Python.
If you are interested in writing it all by yourself, this can help: