This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A096986 #20 Aug 09 2024 08:29:21 %S A096986 1,2,3,4,5,6,7,8,23,29,30,31,40,164,176,189,218,370,597,603,1473,1901, %T A096986 2176,2436,2548,2732,4758,5574 %N A096986 Numbers k such that k*k! + (smallest prime > k) is prime. %C A096986 Note that Maple, PARI etc. have different notions of what "next prime" means! %C A096986 Next term is > 7500. - _Jacques Tramu_, Sep 12 2018 %C A096986 Next term is > 10^4. - _Michael S. Branicky_, Aug 09 2024 %e A096986 8 is in the sequence because 8*8!+ 11 is prime. %t A096986 << NumberTheory`NumberTheoryFunctions`;v={};Do[If[PrimeQ [n*n!+NextPrime[n]], v=Append[v, n];Print[v]], {n, 2400}] %o A096986 (PARI) isok(n) = isprime(n*n! + nextprime(n+1)); \\ _Michel Marcus_, Sep 13 2018 %Y A096986 Cf. A096985, A090704, A049433, A108270 %K A096986 more,nonn %O A096986 1,2 %A A096986 _Farideh Firoozbakht_, Jul 31 2004 %E A096986 a(24)-a(27) from _Jacques Tramu_, Sep 12 2018 %E A096986 a(24) corrected by _Michael S. Branicky_, Aug 09 2024