/* * File: Primes.java * Author: Java Java Java Staff * Description: This class contains the isPrime(int) method which tests * whether its parameter is a prime number. */ public class Primes { /** * isPrime() returns true if and only if its parameter is a prime. * @param n -- a positive integer * @return -- true if n is prime, otherwise false * Algorithm: Divide n by 2, 3, 4, ... up to n-1. If any of those * numbers divide n, it is not prime. */ public boolean isPrime(int n) { //Insert your code here } // isPrime() } // Primes