Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active January 11, 2019 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/8bcd181a9e9022a621f900a937678fcb to your computer and use it in GitHub Desktop.
Save MartinZikmund/8bcd181a9e9022a621f900a937678fcb to your computer and use it in GitHub Desktop.
Array fill with for loop
var prime = new bool[1000];
for ( int i = 0; i < isPrime.Length; i++ )
{
prime[i] = true;
}
@lindexi
Copy link

lindexi commented Jan 11, 2019

Why use isPrime.Length ?

@lindexi
Copy link

lindexi commented Jan 11, 2019

I found your history and you have not replaced all isPrime name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment