login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A364877 Numbers k such that 2*pi(k) + k is a prime number. 2
3, 5, 9, 17, 21, 23, 25, 31, 37, 41, 43, 45, 49, 57, 61, 65, 69, 85, 89, 91, 99, 103, 107, 109, 113, 119, 121, 129, 133, 135, 143, 151, 155, 159, 163, 165, 177, 185, 187, 191, 193, 195, 201, 213, 217, 219, 231, 235, 241, 243, 247, 251, 257, 267, 269, 273, 279 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
All terms of this sequence are odd.
A231232 lists the prime terms of this sequence.
LINKS
EXAMPLE
k = 17 is a term: 2*pi(17) + 17 = 14 + 17 = 31, a prime number.
MAPLE
R:= NULL: count:= 0:
m:= 0:
for k from 1 while count < 100 do
if isprime(k) then m:= m+1 fi;
if isprime(2*m+k) then R:= R, k; count:= count+1 fi
od:
R; # Robert Israel, Oct 16 2023
MATHEMATICA
Select[Range[280], PrimeQ[2*PrimePi[#] + #] &] (* Amiram Eldar, Aug 11 2023 *)
PROG
(PARI) isok(k) = isprime(2*primepi(k) + k); \\ Michel Marcus, Aug 12 2023
CROSSREFS
Sequence in context: A306973 A130114 A143106 * A217099 A276970 A294641
KEYWORD
nonn,easy
AUTHOR
Saish S. Kambali, Aug 11 2023
EXTENSIONS
More terms from Jon E. Schoenfield, Aug 11 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 15 06:41 EDT 2024. Contains 375172 sequences. (Running on oeis4.)