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 A051739 #19 Jul 02 2025 16:01:58 %S A051739 2,5,37,577,14401,131681894401,13168189440001,1593350922240001, %T A051739 38775788043632640001,384956219213331276939737002152967117209600000001 %N A051739 Primes of the form (n!)^2 + 1. %H A051739 Vincenzo Librandi, <a href="/A051739/b051739.txt">Table of n, a(n) for n = 1..12</a> %e A051739 37 is a term because it is prime and is (3!)^2 + 1. %t A051739 lst={};Do[s=n!^2;If[PrimeQ[p=s+1], AppendTo[lst, p]], {n, 5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 27 2008 *) %t A051739 Select[Table[(n!)^2+1,{n,1,5000}],PrimeQ] (* _Vincenzo Librandi_, Dec 08 2011 *) %o A051739 (Magma) [a: n in [1..50] | IsPrime(a) where a is Factorial(n)^2+1]; // _Vincenzo Librandi_, Dec 08 2011 %Y A051739 Cf. A046029. Primes in A020549. %K A051739 nonn %O A051739 1,1 %A A051739 _G. L. Honaker, Jr._, Dec 06 1999 %E A051739 More terms from _James Sellers_, Dec 08 1999