Mersenne primes are primes of the form $2^p-1$ where $p$ is some prime. I am wondering if primes of the from $q^p-2$ have been studied where $q>2$ is a prime and $p$ is also a prime. Are there primes of this form? Are there many of them?
Thanks in advance.
There are certainly numbers of that form that are prime, some examples:
and some numbers of that form that are not prime:
One of the reasons the concept of Mersenne primes is so known is that it's relatively simple to test Mersenne numbers for primality (it's quite basic to show that the exponent must be prime, which is just a simple prerequisite, but one that eliminates a fair number of candidates). I haven't heard of any tests optimised for numbers of this form (and as some of the examples show, we don't have a similar simple rule for the exponents), which probably makes these numbers much less studied.
As a result of that much less is probably known, including whether there are infinitely many.