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
KEYWORD
nonn,less
AUTHOR
Juri-Stepan Gerasimov, Feb 19 2010
EXTENSIONS
More terms from R. J. Mathar, Feb 21 2010
Edited by Charles R Greathouse IV, Mar 24 2010
STATUS
approved