OFFSET
1,1
COMMENTS
Same as A045319, except for the 2nd term. - R. J. Mathar, Jan 30 2009
Primes of the form 3*n-+1. - Juri-Stepan Gerasimov, Jan 22 2010
Primes excluding 3. - Juri-Stepan Gerasimov, Apr 20 2010
Primes p such that p^2 + 2 is composite. 3 is the only prime p such that p^2 + 2 (= 11) is prime. All numbers p^2 + 2 for primes p = 2 and p > 3 are divisible by 3. - Jaroslav Krizek, Nov 25 2013
Primes p satisfying the equation gcd(sigma(p-1), p) = 1. - Lechoslaw Ratajczak, Aug 18 2018
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
Select[Prime[Range[150]], MemberQ[{1, 2}, Mod[#, 3]] &] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2012 *)
Drop[Prime@ Range@ 63, {2}] (* Robert G. Wilson v, Jun 04 2015 *)
PROG
(Magma) [p: p in PrimesUpTo(740)|p mod 3 in {1, 2}] // Vincenzo Librandi, Dec 18 2010
(PARI) a(n)=if(n<2, 2, prime(n+1)) \\ Charles R Greathouse IV, May 13 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved