login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028873 Numbers n such that n^2 - 3 is prime. 11
4, 8, 10, 14, 20, 26, 32, 34, 40, 44, 46, 58, 64, 68, 80, 86, 88, 92, 98, 110, 112, 118, 124, 128, 136, 140, 142, 146, 164, 172, 190, 194, 202, 206, 208, 218, 220, 250, 254, 266, 268, 296, 298, 304, 310, 320, 322, 326, 328, 332, 340, 350, 356, 362, 370, 416, 418 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Nathaniel Johnston, Table of n, a(n) for n = 1..10000

P. De Geest, Palindromic Quasipronics of the form n(n+x)

Eric Weisstein's World of Mathematics, Near-Square Prime

EXAMPLE

8^2 - 3 = 61 is prime, so 8 is in the sequence.

MATHEMATICA

a[n_]:=n^x-y; lst={}; x=2; y=3; Do[If[PrimeQ[a[n]], AppendTo[lst, n]], {n, 0, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 03 2009 *)

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

Sequence in context: A063087 A120064 A191330 * A252662 A153975 A020169

Adjacent sequences:  A028870 A028871 A028872 * A028874 A028875 A028876

KEYWORD

nonn,easy

AUTHOR

Patrick De Geest

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified December 10 20:48 EST 2017. Contains 295856 sequences.