Beispiel #1
0
 private void btnMenorMil_Click(object sender, EventArgs e)
 {
     primes = new Eratosthenes(1000);
     primes.fill();
     primes.findPrimes();
     txtPrimes.Text = primes.getPrimes();
 }
Beispiel #2
0
 private void btnfindPrimes_Click(object sender, EventArgs e)
 {
     primes = new Eratosthenes(Convert.ToInt32(txtLimit.Text));
     primes.fill();
     primes.findPrimes();
     txtPrimes.Text = primes.getPrimes();
 }