title: Generating exactly prime number with Java
body: <p>I'm aware of the function BigInteger.probablePrime(int bitLength, Random rnd) that outputs probably prime number of any bit length. I want a REAL prime number in Java. Is there any FOSS library to do so with acceptable performance? Thanks in advance!</p>
  
  <h2>EDIT:</h2>
  
  <p>I'm looking at 1024 &amp; 2048 bit primes.</p>