CheckForPrime Simple algorithm that checks if a number is prime or composite, built using basic principles of Java OOP.