an iterative algorithm to dispatch prime factors，choose the one that is not dispatched most recently!