OFFSET
1,1
COMMENTS
EXAMPLE
2 is in the sequence because 2nd prime = 3*1 + 1/2 - 1/2;
4 is in the sequence because 4th prime = 3*2 + 1/2 + 1/2.
PROG
(PARI) list(lim)=my(v=List(), n); forprime(p=2, , if(n++>lim, return(Vec(v))); if(p%3<2, listput(v, n))) \\ Charles R Greathouse IV, Feb 07 2017
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Juri-Stepan Gerasimov, Dec 19 2009
STATUS
approved