查找给定数字的素数 [英] Find prime numbers from a given number

查看:89
本文介绍了查找给定数字的素数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以给我发一个查找给定数字的素数乘积的算法吗?


谢谢


Gary 。

Hi, can someone send me the algorithm for finding the products of prime numbers from a given number?

Thank You

Gary.

推荐答案


您好吗,有人可以发给我查找给定数字的素数乘积的算法吗?


谢谢


加里。
Hi, can someone send me the algorithm for finding the products of prime numbers from a given number?

Thank You

Gary.



一种可能的算法可以这样工作:

One possible algorithm would work like this:

展开 | 选择 | 换行 | 行号


展开 | 选择 | Wrap | 行号


它确实有效但是我仍然不知道它有多高效或者不是
Well it does work but I still have no idea how efficient it is or isn''t


这篇关于查找给定数字的素数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆