A092027 Duplicate of A084750.
4, 5, 10, 11, 12, 14, 29, 53, 81, 90, 116, 236, 323, 346, 1172, 2957
Offset: 1
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.
727 = 6! + 7 is a prime but 8! + 11 is composite hence 6 is a member but 8 is not. 7 is in the sequence because 7!=5040, nextprime(7)=11 and 5040+11 is prime.
Do[If[PrimeQ[k!+NextPrime[k]], Print[k]], {k, 0, 1525}] (* Farideh Firoozbakht, Feb 26 2004 *) Select[Range[0,500],PrimeQ[#!+NextPrime[#]]&] (* The program generates the first 19 terms of the sequence. *) (* Harvey P. Dale, Jul 16 2025 *)
For[n = 1, n < 60, n++, If[PrimeQ[n! - Prime[PrimePi[n] + 1]], Print[n! - Prime[PrimePi[n] + 1]]]] (Steinerberger) Select[Table[n!-NextPrime[n],{n,100}],PrimeQ] (* Harvey P. Dale, May 02 2015 *)
Comments