I am trying to find all prime factors of a given integer with python

前端 未结 0 1107
星月不相逢
星月不相逢 2020-12-08 07:42

I want to find all prime factors of a given integer. So I tried this:

n = 210
k = 0
list = []
for i in range(2, n):
    if n % i == 0:
        for j in range(         


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