Find all primes of the form $n^3-1,n\in\mathbb N,n>1$

1.1k Views Asked by At

First prime is $p_1=7$ is for $n=2$.

Checking $n=\{3,...,10\}$ gives no primes.

How to evaluate primality in this case ($n^3-1$) and in general case (mathematical solution)?

1

There are 1 best solutions below

0
On BEST ANSWER

Hint: Note that $$ n^3 - 1 = (n-1)(n^2 + n + 1) $$ When can this be a prime?