You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -27,5 +27,5 @@ As noted in the previous step, you may have seen evidence of GitHub Actions runn
4. Wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.
> [!NOTE]
> Check out the **Finish** step to see what you can learn next!
> [!NOTE]
> Check out the **Finish** step to see what you can learn next!
The reason will be displayed to describe this comment to others. Learn more.
using System;
class Program
{
static void Main()
{
Console.WriteLine("Enter a number:");
int number = Convert.ToInt32(Console.ReadLine());
bool isPrime = IsPrime(number);
if (isPrime)
{
Console.WriteLine($"{number} is a prime number");
}
else
{
Console.WriteLine($"{number} is not a prime number");
}
}
static bool IsPrime(int number)
{
if (number <= 1)
return false;
if (number == 2)
return true;
if (number % 2 == 0)
return false;
var boundary = (int)Math.Floor(Math.Sqrt(number));
for (int i = 3; i <= boundary; i += 2)
{
if (number % i == 0)
return false;
}
return true;
}
63ca9b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to hacked faceebook password
63ca9b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to hacked faceebook password
63ca9b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"" あとなんしゅうかんかすると"""""""""""""""""""" " あと何週間化すると" "
しょくじかおちゃがしたい
63ca9b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"" あとなんしゅうかんかすると"""""""""""""""""""" " あと何週間化すると" "
しょくじかおちゃがしたい
63ca9b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using System;
class Program
{
static void Main()
{
Console.WriteLine("Enter a number:");
int number = Convert.ToInt32(Console.ReadLine());
}