Created
July 12, 2018 06:40
-
-
Save isaacd9/5ec2851e46ca9ec2329ab98c98cc7d4a to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
arr := [100000000]bool{} | |
for i := 2; i < 100000000; i++ { | |
if arr[i] == false { | |
fmt.Println(i) | |
} | |
arr[2*i] = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment