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.

A084750 Numbers k such that k! - p is a prime, where p is the smallest prime > k.

This page as a plain text file.
%I A084750 #25 Apr 29 2025 04:46:05
%S A084750 4,5,10,11,12,14,29,53,81,90,116,236,323,346,1172,2957,8400,14906
%N A084750 Numbers k such that k! - p is a prime, where p is the smallest prime > k.
%C A084750 Numbers k such that k! - NextPrime(k) is prime.
%C A084750 If k != 3, there does not exist a prime p and a number k such that k! - NextPrime(k) < p < k! - 1. - _Farideh Firoozbakht_, Feb 26 2004
%e A084750 10 is in the sequence because 10! = 3628800, NextPrime(10) = 11 and 3628800 - 11 = 3628789 is prime.
%t A084750 Do[If[PrimeQ[k!-NextPrime[k]], Print[k]], {k, 0, 1425}] (* _Farideh Firoozbakht_, Feb 26 2004 *)
%Y A084750 Cf. A084749, A050299, A002982, A064401, A084751.
%K A084750 more,nonn
%O A084750 1,1
%A A084750 _Amarnath Murthy_ and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 16 2003
%E A084750 More terms from _Farideh Firoozbakht_, Feb 26 2004
%E A084750 a(16) from _Ryan Propper_, Jul 09 2005
%E A084750 Edited by _N. J. A. Sloane_ at the suggestion of _Ryan Propper_, Jan 26 2008
%E A084750 a(17) from _Michael S. Branicky_, Jun 21 2023
%E A084750 a(18) from _Michael S. Branicky_, Apr 28 2025