The Legendre conjecture states that for every integer n there is a prime number between n^2 and (n+1)^2. The generalized Legendre conjecture (GLC) is that there is a prime number between n^K and (n+1)^K; a further conjecture is that the smallest K possible is log(1151)/log(95).
Write a function that takes a value of K, which you can assume to be less than log(1151)/log(95), and determines the first value of n for which the GLC fails as well as the interval [n^K (n+1)^K].

Solution Stats

114 Solutions

31 Solvers

Last Solution submitted on Dec 02, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...