OFFSET
1,1
EXAMPLE
a(1)=17 because (23^2 - 17^2)/2 - 1 = 119 and (23^2 - 17^2)/2 + 1 = 121 (119, 121 are not primes),
a(2)=23 because (31^2 - 23^2)/2 - 1 = 215 and (31^2 - 23^2)/2 + 1 = 217 (215, 217 are not primes),
a(3)=47 because (59^2 - 47^2)/2 - 1 = 635 and (59^2 - 47^2)/2 + 1 = 637 (635, 637 are not primes), ...
MAPLE
ts_p2_21:=proc(n) local a, b, i, ans; ans := [ ]: for i from 2 to n do a := (ithprime(i+2)^(2)-ithprime(i)^(2))/2-1: b := (ithprime(i+2)^(2)-ithprime(i)^(2))/2+1: if not (isprime(a)=true or isprime(b)=true) then ans := [ op(ans), ithprime(i) ]: fi od; RETURN(ans) end: ts_p2_21(500);
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Aug 01 2007
STATUS
approved