Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (18 sloc) 0.297 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System;

class Test {
public static bool testprime (int x) {
if ((x & 1) != 0) {
for (int n = 3; n < x; n += 2) {
if ((x % n) == 0)
return false;
}
return true;
}
return (x == 2);
}

public static int Main () {
if (!testprime (17))
return 1;
return 0;
}
}
Something went wrong with that request. Please try again.