Our algebra teacher usually gives us a paper of $20-30$ questions for our homework. But each week, he tells us to do all the questions which their number is on a specific form.

For example, last week it was all the questions on the form of $3k+2$ and the week before that it was $3k+1$. I asked my teacher why he always uses the linear form of numbers... Instead of answering, he told me to determine which form of numbers of the new paper should we solve this week.

I wanted to be a little creative, so I used the prime numbers and I told everyone to do numbers on the form of $\lfloor \sqrt{p} \rfloor$ where $p$ is a prime number. At that time, I couldn't understand the smile on our teacher's face.

Everything was O.K., until I decided to do the homework. Then I realized I had made a huge mistake.$\lfloor \sqrt{p} \rfloor$ generated all of the questions of our paper and my classmates wanted to kill me. I went to my teacher to ask him to change the form, but he said he will only do it if I could solve this:

Prove that $\lfloor \sqrt{p} \rfloor$ generates all natural numbers.

What I tried: Suppose there is a $k$ for which there is no prime number $p$ that $\lfloor \sqrt{p} \rfloor=k$. From this we can say there exists two consecutive perfect squares so that there is no prime number between them. So if we prove that for every $x$ there exists a prime number between $x^2$ and $x^2+2x+1$ we are done.

I tried using Bertrand's postulate but it didn't work.

I would appreciate any help from here :)

Martin Sleziak
  • 50,316
  • 18
  • 169
  • 342
  • 4,601
  • 2
  • 21
  • 50

2 Answers2


If we prove that for every x there exists a prime number between $x^2$ and $x^2+2x+1$, we are done.

This is Legendre's conjecture, which remains unsolved. Hence the big smile on your teacher's face.

  • 46,778
  • 1
  • 77
  • 148
  • Out of curiosity, I remember about a year ago (or perhaps two) that some mathematician had been able to prove that there was in minimum gap in between two primes but I can't find it on internet. Any idea what it was? – user88595 Apr 27 '14 at 21:35
  • 4
    @user88595: Was it [Yitang Zhang](http://en.wikipedia.org/wiki/Yitang_Zhang) ? – Lucian Apr 28 '14 at 01:11
  • @Lucian : yes that's it cheers – user88595 Apr 28 '14 at 07:08
  • 3
    @CODE Now you just need to prove the legendre's conjecture and you're done! It's not the first time this has happened :-P http://en.wikipedia.org/wiki/George_Dantzig#Mathematical_statistics – Ant Jun 06 '14 at 12:59
  • @Ant Thanks for reminding me of Dantzig's story – Tobias Kienzler Nov 22 '16 at 13:44

Any of the accepted conjectures on sieves and random-like behavior of primes would predict that the chance of finding counterexamples to the conjecture in $(x^2, (x+1)^2)$ decrease rapidly with $x$, since they correspond to random events that are (up to logarithmic factors) $x$ standard deviations from the mean, and probabilities of those are suppressed very rapidly. This makes the computational evidence for the conjecture more reliable than just the fact of checking up to the millions and billions.

  • 34,340
  • 3
  • 43
  • 106