I was asked to find all the prime numbers in these forms and prove that these are the only prime numbers in these forms. From some basic research on the internet, I suspect it may have been a trick question and that it is conjectured that they are infinite primes in this form.
I am aware there is a unique prime in the form $n^2-1$, $n^3-1$, using the $(n-1)$ factorisation.
Please would you help.
EDIT: this is meant to be a generalisation for any positive integers, n and m.