using System.Collections.Generic;
public static void Main()
Console.WriteLine("Main Menu");
Console.WriteLine("[1]: List first N prime numbers");
Console.WriteLine("[2]: List all prime numbers from 0 to N");
string option = Console.ReadLine();
Console.WriteLine("What interger is N equal to?");
int N = Convert.ToInt32(Console.ReadLine());
string prime_list = "Prime Numbers: ";
for (int i = 1; count < N; i++)
for (int j = 2; j < i; j++)
prime_list = prime_list + i + ", ";
Console.WriteLine(prime_list);
Console.WriteLine("Total: " + count);
for (int i = 1; i < N; i++)
for (int j = 2; j < i; j++)
prime_list = prime_list + i + ", ";
Console.WriteLine(prime_list);
Console.WriteLine("Total: " + count);