Skip to content

Instantly share code, notes, and snippets.

@isido
Created June 20, 2016 11:39
Show Gist options
  • Save isido/2ec0214157c2a9e9b6feaecf8512bd9e to your computer and use it in GitHub Desktop.
Save isido/2ec0214157c2a9e9b6feaecf8512bd9e to your computer and use it in GitHub Desktop.
Misc. Julia functions
# e element, m modulus
function print_multexp_table(e, m)
println("------------");
for i = 0:(m-1)
@printf "%d\t%d\n" i ((i * e) % m)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment