Skip to content

Instantly share code, notes, and snippets.

@Ell
Forked from anonymous/gist:1045479
Created June 24, 2011 19:59
Show Gist options
  • Save Ell/1045553 to your computer and use it in GitHub Desktop.
Save Ell/1045553 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