There are better prime-finding algorithms, but as a quick fix, you only need to test factors up through the square root of the current number, because if you find a factor above the square root, then you should have found a factor below the square root.
long stop = (long) Math.sqrt(currentNum);
for (long test = 2; test <= stop ; test++) {
Additionally, break out of the loop and return false
if you have found a factor and thus proven the number composite.
If more efficiency is desired, you can implement the Sieve of Eratosthenes so that you only check possible factors that are themselves prime.