42. Yielding primes

Write a method that uses the yield statement to return a specific number of prime numbers. Make the test program display those primes in a foreach loop.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.77.84