OFFSET
1,1
COMMENTS
Except for the first two terms (3 and 5), this sequence also represents the primes such that (prime(n)^3 - prime(n-1)^3) is divisible by 3. - Jeff Brown, Jul 06 2020
EXAMPLE
3 is in the sequence because the prime before 3 is 2, and 2 + 3 = 5, and 5 is not divisible by 3.
53 is in the sequence because the prime before 53 is 47, and 47 + 53 = 100, and 100 is not divisible by 3.
MATHEMATICA
Select[Prime[Range[2, 168]], Mod[#+NextPrime[#, -1], 3]!=0&] (* Ivan N. Ianakiev, Oct 08 2019 *)
PROG
(PARI) isok(p) = isprime(p) && (p>2) && ((p+precprime(p-1)) % 3); \\ Michel Marcus, Oct 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Todor Szimeonov, Sep 23 2019
STATUS
approved