import java.math.BigInteger; import java.security.SecureRandom; import java.util.Random; /* */ public class MainClass { public static void main(String[] unused) { Random prng = new SecureRandom(); // self-seeding System.out.println(BigInteger.probablePrime(10, prng)); } }