Example #1
0
 public long Execute()
 {
     PrimeManager.GeneratePrimes(100);
     return(Enumerable.Range(1, 20)
            .Aggregate(new FactorCollection(), (collection, i) => collection.Combine(i.Factorize()))
            .GetNumber());
 }
Example #2
0
        public long Execute()
        {
            PrimeManager.GeneratePrimes(100000);
            var result = GetTriangeNumbers()
                         .SkipWhile(tn => tn.GetDivisors().Count() < 500)
                         .First();

            return(result);
        }
Example #3
0
 public long Execute()
 {
     PrimeManager.GeneratePrimes(200000);
     return(PrimeManager.Primes[10000]);
 }
Example #4
0
 public long Execute()
 {
     PrimeManager.GeneratePrimes(10000);
     return(600851475143.Factorize().Last().Prime);
 }