I was just having an argument with my friend and I dunno how we got here. But he suddenly said all primes are 1 above or below a multiple of 6.
At first I tried a lot of primes but couldn't disprove this. I tried googling but the stuff is too complicated for me.
Is there a simple to understand proof for this statement?
$p \equiv \pm 1 \pmod{6}$, where $p$ is prime.
As pointed out by the answers. I forgot to mention that p > 3. I never checked 2 and 3 when talking to my friend. Somehow thought of them as corner cases.
If $p$ is a prime >3, then since $p$ is not divisible by 3, we must have $p−1$ or $p+1$ divisible by 3. And both are even, so one must be divisible by 6.
More generally, if you are neither divisible by 2 nor 3, then you neighbor a multiple of 6.