You are viewing a single comment's thread. Return to all comments →
because sqrt(n) * sqrt(n) = n.
For example, if you want the factors of 100.
1 * 100 2 * 50 4 * 25 5 * 20 10 * 10 <--- after this point the numbers (a,b) switch to become (b,a) 20 * 5 25 * 4 50 * 2 100 * 1
HackerRank solutions.
Seems like cookies are disabled on this browser, please enable them to open this website
Prime Checker
You are viewing a single comment's thread. Return to all comments →
because sqrt(n) * sqrt(n) = n.
For example, if you want the factors of 100.
HackerRank solutions.