A small Prime number algorithm written in Java.