The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A177150 Numbers n such that n^2 + prime(n)^2 is a prime. 1
 1, 2, 10, 20, 30, 34, 36, 50, 60, 100, 108, 110, 112, 114, 122, 130, 156, 188, 192, 198, 204, 208, 210, 216, 230, 234, 240, 246, 250, 260, 286, 290, 294, 300, 330, 332, 338, 342, 360, 388, 390, 392, 410, 416, 440, 460, 468, 484, 492, 502, 532, 542, 556, 570 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Amiram Eldar, Table of n, a(n) for n = 1..10000 EXAMPLE 100 is in the sequence because the 100th prime is 541, and 100^2 + 541^2 = 302681 is prime. MAPLE with(numtheory): nn:= 150: T:=array(1..nn):k:=1:for n from 1 to 1764 do:p:=ithprime(n):if type(p^2+n^2, prime)=true then T[k]:=n:k:=k+1: else fi:od:print(T): MATHEMATICA Select[Range[600], PrimeQ[#^2 + Prime[#]^2] &] (* Amiram Eldar, Aug 11 2019 *) PROG (MAGMA)  [m:m in [1..600]:]| IsPrime(m^2+NthPrime(m)^2)]; // Marius A. Burtea, Aug 11 2019 CROSSREFS Cf. A106587. Sequence in context: A307254 A293725 A305448 * A165551 A139592 A294544 Adjacent sequences:  A177147 A177148 A177149 * A177151 A177152 A177153 KEYWORD nonn AUTHOR Michel Lagneau, May 03 2010 STATUS approved

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

Last modified January 17 23:37 EST 2020. Contains 330995 sequences. (Running on oeis4.)