Prime numbers and factorization
In this section we will study checking a number for primality, how to find all divisors of a number up to $\sqrt{N}$ and factoring a number into prime numbers
Basics
What is a prime number?
A number is called prime if and only if has exactly two divisors: and the number itself.
How to find all divisors of a number ?
A naive solution is to iterate through all numbers from to and check divisibility.
Such a method works in . How to improve the code?