Menu
Hi guys:
Trying to write a function to prove is a number is a prime.
Whilst i have it working i don’t think its the most efficient way.
I basically find all the factors of the number and then count how many factors it has, if its 2 its prime. problem there is if i input 123456789, it has to loop through every number between 0 and 123456789.
Any better suggestions?