OFFSET
1,1
COMMENTS
Phi(n) is middle term between twin primes (A014574). Union of A006512 and A068019; intersection of A039698 and A078892. - Ray Chandler, May 26 2008
The positions of isolated nonprimes in A000010. - Juri-Stepan Gerasimov, Nov 10 2009
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
phi(14) + 1 = 7 and phi(14) - 1 = 5, so 14 is a term of the sequence.
MATHEMATICA
Select[Range[10^3], PrimeQ[EulerPhi[ # ] + 1] && PrimeQ[EulerPhi[ # ] - 1] &]
Select[Range[300], And@@PrimeQ[EulerPhi[#]+{1, -1}]&] (* Harvey P. Dale, Apr 07 2012 *)
PROG
(PARI) isok(n) = my(p); isprime(p=eulerphi(n)-1) && isprime(p+2); \\ Michel Marcus, Sep 29 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joseph L. Pe, Jul 10 2002
EXTENSIONS
Extended by Ray Chandler, May 26 2008
STATUS
approved