Skip to content

Instantly share code, notes, and snippets.

@amithkk
Created December 18, 2011 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amithkk/1493065 to your computer and use it in GitHub Desktop.
Save amithkk/1493065 to your computer and use it in GitHub Desktop.
Divisibilty test
i=2
cfl=2
print "What is the number to compute?",
cno=int(raw_input(">"));
while i>0:
cfl=cfl+1
i= cno%cfl
print cno,"is exactly divisible by",cfl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment