add ISafeSerializationData
[mcs.git] / tests / test-729.cs
blobaaf0463aaa0ebb3ec5d96290b4f398c409421c98
1 using System;
3 namespace Primes
5 class MainClass
7 public static int Main ()
9 const ulong max = 5;
10 bool[] numbers = new bool[max];
12 for (ulong i = 0; i < max; i++)
13 numbers[i] = true;
15 for (ulong j = 1; j < max; j++)
16 for (ulong k = (j + 1) * 2; k < max; k += j + 1)
17 numbers[k] = false;
19 for (ulong i = 0; i < max; i++)
20 if (numbers[i])
21 Console.WriteLine (i + 1);
23 return 0;