OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
EXAMPLE
8 is a term since 7 is prime and 9 = 3*3 is composite; 26 is a term since 25 = 5*5 and 27 = 3*3*3 are both composite.
PROG
(PARI) {for(n=2, 60000, if(matsize(factor(n-1))[1]*matsize(factor(n+1))[1]==1&&factor(n-1)[1, 2]*factor(n+1)[1, 2]>1, print1(n, ", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 22 2003
EXTENSIONS
Edited and extended by Klaus Brockhaus, Sep 25 2003
STATUS
approved