Correctly check for squares of primes (#549)
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.
K
Kushal Naidu committed
75d11f9034552685b390054a4a7083766a649caa
Parent: fa86d3d
Committed by Harshil <darjiharshil2994@gmail.com>
on 10/30/2018, 1:38:44 PM