M. Gallant 1/99Mersenne primes are of particular interest because they represent the largest known primes to date, and the primality test is easily implemented on supercomputers. (Currently [1/99], the largest known prime number is the Mersenne prime 2^3021377-1 discovered by GIMPS on 1/98.) Since Java 1.1+ supports BigInteger arbitrary-precision math, it is easy to implement the Lucas-Lehmer test in Java. Enter a range of values for the exponent p of the Mersenne numbers in the text-fields below, (the first number must be odd) and click Test for Primes. Click Print to display the value of the Mersenne number in the second text field: