@@ -0,0 +1,1011 @@
+/* Name:       Dan Wilder%0A * Class:      CMP SCI 2261 - E01%0A * Due Date:   22 September 2014%0A */%0A%0Apublic class Driver %7B%0A  public static void main(String%5B%5D args)%7B%0A%09%09     %0A    int upperLimit = Integer.parseInt(args%5B0%5D);%0A    int count = 0;%0A    %09%0A    // Ordered list of prime numbers between 2 - UPPER_LIMIT%0A%09PrimeNumberList primes = new PrimeNumberList(upperLimit);%0A%09      %0A        System.out.println(%22%5CnCalculating twin primes:%5Cn%22);%0A%09// Loop over each element in the list of prime numbers%0A%09for(int i = 1; i %3C primes.length(); i++) %7B%0A%09  if (primes.getValue(i) - primes.getValue(i-1) == 2) %7B%0A%09    ++count;  %0A%09    String output = %22(%22 + primes.getValue(i-1) + %22, %22 + primes.getValue(i) + %22)%22;%0A            System.out.println(output);%0A%09  %7D%0A%09%7D%0A%09%0A%09System.out.println(%22%5Cn%5CnUpper Limit: %22 + upperLimit);%0A%09System.out.println(%22%5CnNumber of Primes: %22 + primes.length());%0A        System.out.println(%22%5CnNumber of twin prime pairs: %22 + count);%0A%09System.out.println(%22%5CnPrime Density: %22 + (float)primes.length() / upperLimit);%0A  %7D%0A%7D%0A

Add Driver.java