As our design of the PrimesApplet class suggested, the Primes should have a public method that can be used to test whether a number is prime. Let's call this method isPrime(). This should be a boolean method that should return true when its int parameter is a prime number. Otherwise it should return false.
The Primes class does not have any kind of internal state that would be represented in the form of instance variables. Any variables that it may need to determine if a number is prime can be declared within the isPrime() method. Thus, its specification is very simple: