# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a092045 Showing 1-1 of 1 %I A092045 #8 Mar 29 2023 13:04:01 %S A092045 1,2,25,26,68,1054,1058,6472,251723,4124468,69709727,69709942, %T A092045 465769817,465769835,1208198860,8179002154,8179002176,8179002178, %U A092045 145935689360,145935689369,145935689392,145935689393 %N A092045 Numbers n such that prime(n) == -3 (mod n). %t A092045 NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; p = 1; Do[ If[ Mod[p = NextPrim[p], n] == n - 3, Print[n]], {n, 1, 10^9}] %t A092045 Join[{1,2},Select[Range[5 10^6],Mod[Prime[#],#]==#-3&]] (* _Harvey P. Dale_, Mar 29 2023 *) %Y A092045 Cf. A023145, A045924, A092044, A092046, A092047, A092048, A092049, A092050, A092051, A092052. %K A092045 nonn %O A092045 1,2 %A A092045 _Robert G. Wilson v_, Feb 18 2004 %E A092045 Corrected by Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Feb 20 2004 %E A092045 a(13)-a(22) from _Robert G. Wilson v_, Feb 22 2006 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE