Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 730 Bytes

README.md

File metadata and controls

36 lines (32 loc) · 730 Bytes

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]