A233554 Indices of primes in the tribonacci-like sequence, A020992.
1, 3, 6, 15, 19, 22, 207, 542, 2374, 10579, 17726, 43182
Offset: 1
Keywords
Programs
-
Mathematica
a={0,2,1};Print[1];For[n=3,n<=1000,n++,sum=Plus@@a;If[PrimeQ[sum],Print[n]];a=RotateLeft[a]; a[[3]]=sum]
Comments