Mombu the Science Forum

Go Back   Mombu the Science Forum > Science > how to solve Google's puzzle using Maple?
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 2nd July 16:07
sergey markelov
External User
 
Posts: 1
Default how to solve Google's puzzle using Maple?



Puzzle is to find the first 10-digit prime number occurring in consecutive
digits (i.e., the decimal expansion) of the e. Answer is known
(7427466391), it was found using the following Mathematica code:

Select[FromDigits/@Partition[First[RealDigits[E,10,1000]],10,1],PrimeQ,1]

source: http://mathworld.wolfram.com/news/2004-10-13/google/

My question to solve this problem using Maple. It is not so hard to do
this writing a long program (mine is 28 lines of code), but I need as
short as possible one (purpose is to explain my boss to buy also Maple,
not only Mathematica).

Thank you.
Sergei Markelov
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666