Created
February 17, 2016 03:28
-
-
Save ezfe/6d55ebc96542f3a4a955 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
var currentNum = 1 | |
mainLoop: while true { | |
currentNum += 2 | |
for x in 2..<currentNum where currentNum % x == 0 { | |
continue mainLoop | |
} | |
print(currentNum) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment