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 A365639 #23 Mar 06 2024 01:00:18 %S A365639 0,1,2,4,6,16,28,42 %N A365639 Numbers k such that k! + k^3 + 1 is prime. %C A365639 If k is a term then k+1 is not composite (since k! + k^3 + 1 is divisible by k+1 for a composite k > 4). - _Amiram Eldar_, Sep 14 2023 %C A365639 Any further terms exceed 50000. - _Lucas A. Brown_, Mar 05 2024 %t A365639 Select[Range[0, 50], ! CompositeQ[# + 1] && PrimeQ[#! + #^3 + 1] &] (* _Amiram Eldar_, Sep 14 2023 *) %o A365639 (Python) %o A365639 from sympy import isprime, factorial %o A365639 print([k for k in range(0, 43) if isprime((factorial(k)+ k**3 + 1))]) %Y A365639 Cf. A000040, A000142, A000578, A001093, A038507, A073308, A080668. %K A365639 nonn,hard,more %O A365639 1,3 %A A365639 _DarĂo Clavijo_, Sep 14 2023