public IActionResult Index(int?howManyPrimes) { var gen = new PrimeGenerator(); return(View(gen.FindPrimes(howManyPrimes ?? 7))); }
private void InitPrimes(int primeCount) { var gen = new PrimeGenerator(); _primes = gen.FindPrimes(primeCount); }