cp's OEIS Frontend

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.

A365074 Numbers k such that k! - k^2 - 1 is prime.

This page as a plain text file.
%I A365074 #29 Jun 16 2025 23:48:54
%S A365074 4,6,14,126,184,634,1354,1550,6710
%N A365074 Numbers k such that k! - k^2 - 1 is prime.
%t A365074 Select[Range[4, 1600, 2], PrimeQ[#! - #^2 - 1] &] (* _Amiram Eldar_, Sep 12 2023 *)
%o A365074 (Python)
%o A365074 from gmpy2 import *
%o A365074 print([k for k in range(0,2000) if is_prime((fac(k)- k*k - 1))])
%Y A365074 Cf. A073443.
%K A365074 nonn,hard,more
%O A365074 1,1
%A A365074 _DarĂ­o Clavijo_, Sep 12 2023
%E A365074 a(9) from _Michael S. Branicky_, Sep 14 2023