A simple way to calculate prime factors of an integer