This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Authors: Peter Taylor and Pedja Terzic | |
import sys | |
print(" ***** CHEBYSHEV *****\n\n\n") | |
while True: | |
n=int(input("Enter a number : ")) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This script was written in python 3.x. | |
In order to run this script, please make sure your python version is 3.x or above. | |
How to run: | |
python T261.py | |
or if it doesn't work use this one: | |
python3 T261.py | |
Author: Pedja Terzic <[email protected]> | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This script was written in python 3.x. | |
In order to run this script, please make sure your python version is 3.x or above. | |
How to run: | |
python fermat.py | |
or if it doesn't work use this one: | |
python3 fermat.py | |
Author: Pedja Terzic <[email protected]> | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
import random | |
print(" ***** CARDANO *****\n\n\n") | |
while True: | |
n=int(input("Enter a number : ")) | |
k=int(input("Enter an accuracy parameter : ")) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
from mpmath import * | |
print(" ***** MERSENNE *****\n\n\n") | |
while True: | |
k=int(input("Enter the coefficient : ")) | |
b=int(input("Enter the base : ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
print(" ***** COP *****\n\n\n") | |
while True: | |
n=int(input("Enter a number : ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
print(" ***** PROTOS *****\n\n\n") | |
while True: | |
n=int(input("Enter the ordinal number : ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
print(" ***** SIEVE *****\n\n\n") | |
while True: | |
n1=int(input("Enter lower bound : ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
from mpmath import * | |
from sympy import * | |
print(" ***** LUX *****\n\n\n") | |
while True: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pedja | |
from sympy import * | |
print(" ***** SAFE PRIME *****\n\n\n") | |
while True: | |
OlderNewer