|
|
A232188
|
|
Primes p with same last four digits as pi(p).
|
|
2
|
|
|
99551, 165103, 208697, 263071, 284833, 588229, 663853, 728681, 1073819, 1181617, 1213909, 1407647, 1515259, 1590487, 1676497, 2116991, 2170681, 2202857, 2417477, 2481833, 2589143, 2664229
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
15103 and prime(15103)=165103, both end with 5103.
|
|
MAPLE
|
Primes:= select(isprime, [2, seq(2*i+1, i=1..10^6)]):
A232189:= select(t -> Primes[t]-t mod 10^4=0, [$1..nops(Primes)]):
|
|
MATHEMATICA
|
Select[Prime[Range[200000]], Mod[#, 10000]==Mod[PrimePi[#], 10000]&] (* Harvey P. Dale, Jul 16 2021 *)
|
|
PROG
|
(PARI) p=10007; n=1230; while(n<10^6, p=nextprime(p+1); n=n+1; if(p%10^4==n%10^4, print1(p, ", ")))
(MATLAB)
P = primes(10^7);
R = mod(P - [1:size(P, 2)], 10000);
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,less
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|