mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
b63a1115b2
* Added a new Algorithm to check if a number is prime or not. Added a new Algorithm to check if a number is prime or not. It takes one + half the amount of iterations of the square root of the number. Returns Boolean value. * Fixed possibility of being truncated Changed the 1/2 with a 0.5 * Fixed Major Error Instead of 3, 5, 7 The Loop as checking 2, 4, 6 which would cause all odd numbers to show prime. Fixed by subtracting one. * Fixed Minor Formatting issues Github Merged the 2 previous and current version to make a weird file. * Fixed possibility of being truncated Changed the 1/2 with a 0.5 |
||
---|---|---|
.. | ||
BasicMaths.py | ||
FibonacciSequenceRecursion.py | ||
GreaterCommonDivisor.py | ||
ModularExponential.py | ||
PrimeCheck.py | ||
SegmentedSieve.py | ||
SieveOfEratosthenes.py | ||
SimpsonRule.py | ||
TrapezoidalRule.py |