Different results from for-loop and while-loop for prime factorization in Python 3

前端 未结 0 942
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 01:07

I have written a function that returns the prime factors of a given integer. For the cases I tested, it seems to work alright. Here is the original function.

def          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题