You can
put this solution on YOUR website!divide 120 with all prime numbers one by one and check ..we get
2,3,5,(to know the end point you go only up to midway while checking for all factors..120=10*12 then next is 12*10..so this is the midway point.you need check up to 12 only...so the only prime factors are 2,3 and 5