Is my computer slow or I'm not doint right, but I'm just getting nothing while runing this code that suppose to find 5 prime numbers larger than Long.MAX_VALUE?
Code://Prime numbers larger than Long.MAX_VALUE
long min = Long.MAX_VALUE; //minimum larg number
int count = 0; //count prime numbers
BigInteger big = new BigInteger(String.valueOf(min));
while (count < 5) {
BigInteger bigCount = BigInteger.ONE; //increment for big prime number
big = big.add(BigInteger.ONE);
boolean prime = true;
while(bigCount.compareTo(big.divide(BigInteger.valueOf(2))) < 0) {
bigCount = bigCount.add(BigInteger.ONE);//start 2
if (big.mod(bigCount).compareTo(BigInteger.ZERO) == 0) {
prime = false;
break;
}
}
if (prime) {
System.out.println("Big prime> " + big.toString());
count++;
}
}

