Originally Posted by Caters

Yes but I want all the factors of 72 and 98 not just prime factors

The number are small enough to easily work out all factors. For each number, Start with 1, then divide by 2, then by 3, etc. if it doesn't divide evenly, it's not a factor, and you can skip to the next number... They will eventually start duplicating, ie 2x36 = 36x2, so you don't have to work it twice. It's longer, but easier. HTH