ex: prime factors method fixed