The book is now available! 102756
(another Prime Pages' Curiosity)
Prime Curios!

Valid HTML 4.01!

Curios: Curios Search:
 

Participate:
Share
GIMPS has discovered a new largest known prime number: 282589933-1 (24,862,048 digits)

+ pi(102756)=9834 is the only pandigital equation of the form pi(m)=n containing each of the digits 0 to 9 exactly once, where pi(m) is the prime-counting function. Discovered by G. L. Honaker, Jr., of Bristol, Virginia.

Copy/paste the following program to the left screen under "BASIC Program" at Quite BASIC and click on the triangular arrow above "Line:" at upper left to RUN:

02 REM Prime-Counting Function: Pi(x)
03 PRINT "Pi";"(";1;")";"=";0
05 PRINT "Pi";"(";2;")";"=";1
07 LET C=1
11 FOR N=3 TO 102756 
13 FOR D=2 TO (N-1)
17 IF N/D=INT(N/D) THEN 29
19 NEXT D
23 LET C=C+1
29 PRINT "Pi";"(";N;")";"=";C
31 NEXT N
37 END




Prime Curios! © 2000-2019 (all rights reserved)  privacy statement   (This page was generated in 0.0240 seconds.)