OFFSET
1,1
EXAMPLE
prime(3) is 5, 5 == 1 mod 2 == 2 mod 3. 1 + 2 = 3, which is prime. Therefore, the index of the prime(3) is in the sequence.
MATHEMATICA
lst1={}; lst2={}; i=1; primes=Prime[Range[1000]];
Do[
While[i<k, AppendTo[lst1, Mod[primes[[k]], primes[[i]]]]; i++];
If[PrimeQ[Total[lst1]], AppendTo[lst2, k]];
i=1; lst1={},
{k, 3, Length[primes]}
];
lst2
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ivan N. Ianakiev, Feb 03 2015
STATUS
approved