/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtilimportFormalConjectures.Wikipedia.LegendreConjecture
[ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number
theory. Monographies de L'Enseignement Mathematique (1980).
[RST75] Ramachandra, K. and Shorey, T. N. and Tijdeman, R., On Grimm's problem relating to
factorisation of a block of consecutive integers. J. Reine Angew. Math. (1975), 109-124.
openSetFilterTopologyAsymptoticsnamespaceErdos375
This is a proposition saying that for any n ≥ 1 and any k, if n + 1, ..., n + k are all
composite, then there are distinct primes p₁, ... pₖ such that pᵢ ∣ n + i for all 1 ≤ i ≤ k.
It is easy to see that for any n ≥ 1 and k ≤ 2, if n + 1, ..., n + k are all composite,
then there are distinct primes p₁, ... pₖ such that pᵢ ∣ n + i for all 1 ≤ i ≤ k.
There exists a constant c > 0 such that for all n, if
k < c * (log n / (log (log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime), then
there are distinct primes p₁, ... pₖ such that pᵢ ∣ n + i for all 1 ≤ i ≤ k. This is proved
in [RST75]. There is no need to only consider sufficiently large n because one can always take
c small enough so that k < c * (log n / (log (log n))) ^ 3 implies that k = 0 until n is
large.