Prime numbers of the form 2n 1 are known as Mersenne primes , after the seventeenth-century monk Marin Mersenne , who studied number theory and perfect numbers . Prime numbers of the form 2p â ' 1 are known as Mersenne primes , after the seventeenth-century monk Marin Mersenne , who studied number theory and perfect numbers .