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!)
A228828 Numbers n such that n^2 + pi(n) is prime. 1
2, 3, 7, 12, 18, 21, 36, 37, 42, 45, 52, 55, 60, 61, 65, 68, 70, 79, 84, 95, 98, 113, 130, 135, 143, 145, 155, 180, 181, 185, 195, 205, 216, 222, 231, 239, 253, 262, 273, 275, 325, 332, 334, 354, 368, 370, 385, 402, 417, 421, 432, 433, 454, 462, 488, 505, 516 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Conjecture: the sequence is infinite.
LINKS
K. D. Bajpai and  Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 3000 terms from Bajpai)
EXAMPLE
a(6) = 21 : n^2+pi(n ) = 21^2 + pi(21) = 441+8 = 449 which is a prime.
MAPLE
with(numtheory): KD:= proc() local a; a:= n^2+pi(n); if isprime(a) then RETURN(n): fi; end: seq(KD(), n=1..2000);
MATHEMATICA
Select[Range[600], PrimeQ[#^2+PrimePi[#]]&] (* Harvey P. Dale, Jul 04 2018 *)
PROG
(PARI) v=List(); p=0; for(n=2, 1e4, p+=isprime(n); if(isprime(n^2+p), listput(v, n))); Vec(v) \\ Charles R Greathouse IV, Sep 04 2013
CROSSREFS
Cf. A077510 (numbers n such that n + pi(n) is a prime).
Sequence in context: A066733 A049623 A302506 * A061577 A350437 A006488
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Sep 04 2013
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 September 12 11:08 EDT 2024. Contains 375850 sequences. (Running on oeis4.)