OFFSET
1,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
Patrick De Geest, Palindromic Quasipronics of the form n(n+x).
Eric Weisstein's World of Mathematics, Near-Square Prime.
FORMULA
a(n) = sqrt(A028874(n) + 3). - Amiram Eldar, Mar 01 2025
EXAMPLE
8^2 - 3 = 61 is prime, so 8 is in the sequence.
MATHEMATICA
Select[Range[2, 500], PrimeQ[#^2 - 3] &] (* Amiram Eldar, Mar 01 2025 *)
PROG
(Magma) [n: n in [2..10000] |IsPrime(n^2-3)]; // Vincenzo Librandi, Aug 05 2010
(PARI) is(n)=isprime(n^2-3) \\ Charles R Greathouse IV, Jul 02 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
