Skip to content

Instantly share code, notes, and snippets.

@ezfe
Created February 17, 2016 03:28
Show Gist options
  • Save ezfe/6d55ebc96542f3a4a955 to your computer and use it in GitHub Desktop.
Save ezfe/6d55ebc96542f3a4a955 to your computer and use it in GitHub Desktop.
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