Skip to content

Instantly share code, notes, and snippets.

@vrachnis
Created May 26, 2010 01:30
Show Gist options
  • Save vrachnis/413928 to your computer and use it in GitHub Desktop.
Save vrachnis/413928 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from math import sqrt
NUMBER = 6319
SQ = int(sqrt(NUMBER))
for i in range(3,SQ,2):
if NUMBER%i == 0:
print i, '/', NUMBER/i
print "(p-1)(q-1)=", (i-1)*(NUMBER/i-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment