mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
75d11f9034
As the for-loop was looping by two numbers, it would stop at 1 number less than the root of prime squares, resulting it in incorrectly classifying the squares as prime numbers. Incrementing the loop ensures the next number is also considered resulting in accurate classification. |
||
---|---|---|
.. | ||
basic_maths.py | ||
fibonacci_sequence_recursion.py | ||
greater_common_divisor.py | ||
modular_exponential.py | ||
PrimeCheck.py | ||
segmented_sieve.py | ||
sieve_of_eratosthenes.py | ||
simpson_rule.py | ||
trapezoidal_rule.py |