设计一个检查素数的程序 [英] design a program to check prime number

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

问题描述

设计一个程序来检查素数

解决方案

当你的主体和你的身体相同时,这是一个好的迹象,你不是在问一个真正的问题。你的意思是我很懒,所以我的作业也适合我。答案是否定的,如果你想通过,你需要做自己的工作。


在这里你去:

http://en.wikipedia.org/wiki/Prime_number#Verifying_primality [ ^ ]



选择其中一种算法并对其进行编码。

design a program to check the prime number

解决方案

When your subject and your body are identical, that's a good sign that you're not asking a real question. What you meant to say was 'I am lazy, so do my homework for me.'. The answer is no, if you want to pass, you will need to do your own work.


Here you go:
http://en.wikipedia.org/wiki/Prime_number#Verifying_primality[^]

Pick one of these algorithms and code it up.


这篇关于设计一个检查素数的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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