login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A173472
Numbers k such that exactly one of prime(k)^2 - 2 and prime(k)^2 + 2 is prime.
0
1, 3, 4, 6, 8, 10, 12, 14, 15, 18, 20, 24, 27, 28, 31, 32, 34, 40, 43, 47, 48, 51, 52, 55, 62, 65, 68, 72, 82, 86, 87, 91, 94, 99, 100, 104, 107, 111, 119, 123, 128, 129, 130, 132, 133, 134, 135, 139, 141, 150, 152, 170, 172, 177, 180, 182, 191, 200, 202, 209, 211, 214
OFFSET
1,2
COMMENTS
Essentially the same as A137291.
EXAMPLE
a(1)=1 because prime(1)^2 - 2 = 2 is prime and prime(1)^2 + 2 = 6 is composite.
MAPLE
isA173472 := proc(n) local p, pplus, pmin ; p := ithprime(n) ; pmin := isprime(p^2-2) ; pplus := isprime(p^2+2) ; if pmin <> pplus then return true; else return false; end if; end proc: for n from 1 to 300 do if isA173472(n) then printf("%d, ", n) ; end if; end do ; # R. J. Mathar, Feb 21 2010
CROSSREFS
Cf. A137291.
Sequence in context: A206818 A191262 A184736 * A334905 A058992 A051755
KEYWORD
nonn,less
AUTHOR
EXTENSIONS
More terms from R. J. Mathar, Feb 21 2010
Edited by Charles R Greathouse IV, Mar 24 2010
STATUS
approved