|
|
A234317
|
|
Number of primes <= R_n where R_n is 11...111 with n 1's.
|
|
2
|
|
|
0, 5, 29, 186, 1345, 10544, 86537, 733409, 6363181, 56196113, 503193256, 4555800188, 41621368073, 383118399785, 3549047966156, 33056584174789, 309353882390965, 2907021742443974, 27417323062119920, 259423936749134301, 2461813897281353729, 23422580231698331834
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
There are 1345 primes less than or equal to 11111. Thus a(5) = 1345.
|
|
MATHEMATICA
|
PrimePi/@Table[FromDigits[PadRight[{}, n, 1]], {n, 15}] (* The program will take a long time to run *) (* Harvey P. Dale, Jan 21 2015 *)
|
|
PROG
|
(Python)
import sympy
from sympy import primepi
for n in range(1, 50):
..print(primepi((10**n-1)/9), end=', ')
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,less
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|