OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..350
EXAMPLE
1 is in the sequence because 1st prime*8-7=(2nd prime)^2;
4 is in the sequence because 4th prime*8-7=(4th prime)^2;
12 is in the sequence because 12th prime*8-7=(7th prime)^2.
MATHEMATICA
Select[Range[15000], PrimeQ[Sqrt[8Prime[#]-7]]&] (* Harvey P. Dale, Nov 10 2017 *)
PROG
(PARI) isok(n) = issquare(sq=prime(n)*8-7) && isprime(sqrtint(sq)); \\ Michel Marcus, Apr 15 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Mar 01 2010
EXTENSIONS
Corrected (1077 inserted) and extended by R. J. Mathar, Jun 04 2010
STATUS
approved