FindPrimeNumber() public method

public FindPrimeNumber ( int n ) : long
n int
return long
 public static void Main()
 {
     PrimeNumber p = new PrimeNumber();
     for(int i=0;i<1000;i++) {
         Console.Write(p.FindPrimeNumber(i));
         Console.Write(" ");
     }
     Console.WriteLine();
 }
Beispiel #2
0
    public static void Main()
    {
        PrimeNumber p = new PrimeNumber();

        for (int i = 0; i < 1000; i++)
        {
            Console.Write(p.FindPrimeNumber(i));
            Console.Write(" ");
        }
        Console.WriteLine();
    }