public void testPrimes(int n) { TestPrimes t = new TestPrimes(factory); long start = DateTime.Now.Ticks; ATermList l = t.getPrimes(n); long end = DateTime.Now.Ticks; Console.Out.WriteLine("primes(" + n + ") in " + (end - start) + " ms"); //Console.Out.WriteLine(" primes(" + n + ") = " + l); Console.Out.WriteLine("#primes(" + n + ") = " + l.getLength()); Console.Out.WriteLine(factory); }
public void testPrimes(int n) { TestPrimes t = new TestPrimes(factory); long start = DateTime.Now.Ticks; ATermList l = t.getPrimes(n); long end = DateTime.Now.Ticks; Console.Out.WriteLine("primes(" + n + ") in " + (end-start) + " ms"); //Console.Out.WriteLine(" primes(" + n + ") = " + l); Console.Out.WriteLine("#primes(" + n + ") = " + l.getLength()); Console.Out.WriteLine(factory); }