OFFSET
1,1
COMMENTS
Also primes equal to the product of two consecutive odd numbers (A000466) minus 2. - Giovanni Teofilatto, Feb 11 2010
All terms are of the form 6m + 1. - Zak Seidov, May 01 2014
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
Patrick De Geest, Palindromic Quasipronics of the form n(n+x)
R. J. Mathar, Solutions to the exponential Diophantine 1 + p_1^x + p_2^y + p_3^z = w^2 for distinct primes p_1, p_2, p_3, 2022.
Eric Weisstein's World of Mathematics, Near-Square Prime
FORMULA
EXAMPLE
61 is prime and equal to 8^2 - 3, so it is in the sequence.
67 is prime but it's 8^2 + 3 = 9^2 - 14, so it is not in the sequence.
9^2 - 3 = 78 but it's composite, so it's not in the sequence either.
MATHEMATICA
Select[Range[2, 250]^2 - 3, PrimeQ] (* Harvey P. Dale, Aug 07 2013 *)
Select[Table[n^2 - 3, {n, 2, 300}], PrimeQ] (* Vincenzo Librandi, Nov 08 2014 *)
PROG
(Magma) [a: n in [2..300] | IsPrime(a) where a is n^2-3 ]; // Vincenzo Librandi, Nov 08 2014
(PARI) select(isprime, vector(100, n, n^2-3)) \\ Charles R Greathouse IV, Nov 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved