Because they haven't actually factored any other smaller number yet.
If your program has a compilation process that requires you to already know the answer to the problem you're trying to solve, then what they did was not factorization, but "print 3" with extra steps.
replies(3):