OFFSET
1,1
COMMENTS
k == +/- 2 (mod 12) == {2,10} (mod 24).
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition.
Wikipedia, Goldbach's conjecture.
EXAMPLE
3770 is in the sequence since it has a Goldbach partitions, (307,3463) such that 3770 | 307*3463 -1 = 1063140 = 282*3770 and 3770 | (1741*2029 +1) = 3532490 = 937*3770;
4082 is in the sequence since it has a Goldbach partitions, (499,3581) such that 4082 | 499*3583 -1 = 1787916 = 438*4082 and 4082 | (313*3769 +1) = 1179698 = 289*4082; etc.
MATHEMATICA
fQ[n_] := Block[{ flg1 = flg2 = 0, m, p = 3, q}, While[ 2p +1 < n, q = n - p; If[ PrimeQ@q, m = Mod[p*q, n]; If[m == 1, flg1 = 1]; If[m + 1 == n, flg2 = 1]; If[ flg1 == flg2 == 1, Goto[fini]]]; p = NextPrime@p]; Label[fini]; 2p +1 < n]; k = 2; lst = {}; While[k < 400001, If[ fQ@k, AppendTo[lst, k]]; k += 2]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt and Robert G. Wilson v, Jul 22 2020
STATUS
approved