Skip to content

Instantly share code, notes, and snippets.

@jcla1
Created December 9, 2011 20:11
Show Gist options
  • Save jcla1/1453094 to your computer and use it in GitHub Desktop.
Save jcla1/1453094 to your computer and use it in GitHub Desktop.
MMI of e mod totient(n)
function doLoop(a, b) {
for(i=1; i < window.Infinity; i++){
x = (a * i -1) % b;
if( x === 0 ){
console.log(i)
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment