public class MidtermSols { public static void main(String args []){ int limit = 10000; int[] primes = getPrimes(limit); for (int j=0; j