Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions GitHubTestProject/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ static void Main(string[] args)

/// <summary>
/// Tests if a given number is a prime

/// </summary>
/// <param name="n"></param>
/// <returns></returns>
public static bool IsPrime(int n)
{
// TODO: Complete fhe funtion
return n % 2 != 0;
for (int i = 2; i <Math.Sqrt(n); i++)
{
if
}
}

/// <summary>
Expand All @@ -30,7 +33,7 @@ public static bool IsPrime(int n)
/// <param name="a">An integer array</param>
public static void Sort(int[] a)
{
// TODO: Complete fhe funtion
Array.Sort(a);
}
}
}