Exemple #1
0
        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);
        }
Exemple #2
0
		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);
		}