Tag Archives: generate primes

Use yield to generate prime numbers in C#

  This example is based on a lesson about interfaces that I recently recorded for O’Reilly Video Training.   This example shows how to use the yield return statement to generate prime numbers. More importantly it explains how yield return … Continue reading

Posted in algorithms, mathematics, syntax | Tagged , , , , , , , , , , , , , , | Leave a comment