OFFSET
0,2
COMMENTS
{0, 2, 3} is the set of all noncomposite numbers that belong to this sequence.
The sequence continues: a(5) = ?, a(6) = ?, 87, 12, 0, 0, 3, a(12) = ?.
PROG
(Magma) lst:=[]; for n in [1..4] do if not n mod 6 eq 3 then k:=2; while not IsPrime(78557^k+2^n) do k+:=1; end while; Append(~lst, k); else Append(~lst, 0); end if; end for; [0] cat lst;
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Arkadiusz Wesolowski, Oct 11 2015
STATUS
approved