Lab 04
Lab 04
Lab 4 presential
activity. Groups 1 and 4.
2. Add a new console application project to your solution. Make this new project the
starting project. Take as starting point the Fibonacci example in the project
enumerables, solution generics. C&p into your new project that project .cs
files. Modify it to generate the sequence of n first prime numbers. A private method
IsPrime taking an int as parameter and returning a bool encoding wether or not
the parameter is prime will be handy. Show the sequence using foreach and using
the suitable iterator, as it is done in the console application: the already
implemented methods should work fine. Test your implementation: if the sequence
length is 5, The list is [2, 3, 5, 7, 11]. Rename the identifiers with F2.