Skip to content

Some math Functions such as get_prime, get_euler, get_primitive_root in Python3

License

Notifications You must be signed in to change notification settings

jimrueaster/Math-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math-Functions

Some significant functions for Diffie–Hellman Key Exchange. Such as Prime, Euler, Primitive_root in Python3

Python-module List


prime.py

get_prime(min_num, max_num, reverse=False)

$python3 
>>> import prime
>>> print(prime.get_prime(2, 12))
>>> [2, 3, 5, 7, 11]

euler.py

get_euler(n)

$python3 
>>> import euler
>>> print(euler.get_euler(11))
>>> 10

primitive.py

get_primitive_root(n)

$python3 
>>> import primitive
>>> print(primitive.get_primitive_root(7))
>>> [3, 5]

About

Some math Functions such as get_prime, get_euler, get_primitive_root in Python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages