fixed prime_division 1 bug