Skip to content

Instantly share code, notes, and snippets.

Created June 24, 2011 19:22
Show Gist options
  • Save anonymous/1045479 to your computer and use it in GitHub Desktop.
Save anonymous/1045479 to your computer and use it in GitHub Desktop.
a = 2
i = 1
w = 0
def numcheck(a)
for i in 1..7
puts i
if a%i==0
w +=1
break if w == 7
end
else
w = 0
end
end
for a in 1..100
numcheck(a)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment