OFFSET
1,2
MAPLE
isA001097 := proc(n)
if isprime(n) then
if isprime(n+2) or isprime(n-2) then
true;
else
false;
end if;
else
false;
end if;
end proc:
for n from 1 to 300 do
printf("%d, ", n);
end if;
end do: # R. J. Mathar, Feb 19 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 18 2011
EXTENSIONS
Corrected by R. J. Mathar, Feb 19 2015
STATUS
approved