diff --git a/GitHubTestProject/Program.cs b/GitHubTestProject/Program.cs index b910941..2d38dd7 100644 --- a/GitHubTestProject/Program.cs +++ b/GitHubTestProject/Program.cs @@ -21,7 +21,12 @@ static void Main(string[] args) public static bool IsPrime(int n) { // TODO: Complete fhe funtion - return n % 2 != 0; + for (int i = 2; i < n; i++) + { + if (n % i == 0) + return false; + } + return true; } /// @@ -31,6 +36,7 @@ public static bool IsPrime(int n) public static void Sort(int[] a) { // TODO: Complete fhe funtion + Array.Sort(a); } } }