Exemple #1
0
        public IActionResult Index(int?howManyPrimes)
        {
            var gen = new PrimeGenerator();

            return(View(gen.FindPrimes(howManyPrimes ?? 7)));
        }
Exemple #2
0
        private void InitPrimes(int primeCount)
        {
            var gen = new PrimeGenerator();

            _primes = gen.FindPrimes(primeCount);
        }