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.
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.