小海亦狂 level
获赞
375
粉丝
7
关注
4
看过 TA
3
西安邮电大学
2012
测试工程师
IP属地:陕西
暂未填写个人简介
私信
关注
def func():     num = int(input())     def getprime(n):         i = 2         while i * i <= n and n >=&...
七文_七:看懂了,我还优化了一下,谢谢大神给的思路 def fun(n): if 2 <= n: while n % 2 == 0: n = n // 2 print(2, end=" ") if n != 1: i = 3 while i * i <= n: while n % i == 0: n = n // i print(i, end=" ") i = i + 2 if n - 1: print(n, end=" ") num = int(input()) fun(num)
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务