login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Numbers n such that prime(n) == -4 (mod n).
10

%I #6 Jul 14 2012 11:40:50

%S 1,3,5,7,9,67,441,2615,637237,637329,4124703,27067119,179993017,

%T 1208198617,8179002101,55762149071,55762149091

%N Numbers n such that prime(n) == -4 (mod n).

%t NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; p = 1; Do[ If[ Mod[p = NextPrim[p], n] == n - 4, Print[n]], {n, 1, 10^9}]

%Y Cf. A023146, A045924, A092044, A092045, A092047, A092048, A092049, A092050, A092051, A092052.

%K nonn

%O 1,2

%A _Robert G. Wilson v_, Feb 18 2004

%E Corrected by Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Feb 20 2004

%E a(13)-a(17) from _Robert G. Wilson v_, Feb 22 2006