搜索资源列表
MultitudeOfThreading
- 一个多核编程的示例程序,演示了在多核CPU下使用普通编程方法与多核编程判断一个数是否为质数的耗时
C源代码实例
- 包含220个C语言的各种源程序:001 第一个C程序 002 运行多个源文件 003 求整数之积 004 比较实数大小 005 字符的输出 006 显示变量所占字节数 007 自增/自减运算 008 数列求和 009 乘法口诀表 010 猜数字游戏 011 模拟ATM(自动柜员机)界面 012 用一维数组统计学生成绩 013 用二维数组实现矩阵转置 014 求解二维数组的最大/最小元素 015 利用数组求前n个
WL40987330 C语言算法集
- 目录 第一部分 基础篇 001 第一个C程序 002 运行多个源文件 003 求整数之积 004 比较实数大小 005 字符的输出 006 显示变量所占字节数 007 自增/自减运算 008 数列求和 009 乘法口诀表 010&
判断质数
- 一个很简单的判断一个数是否为质数,C语言编写,编译通过。
zhishu
- 输入一个数,可以判断这个数是否为质数,如果是质数,则把它输出,每隔10个数换一行。-Enter a number, can determine whether the number of prime number, if it is prime number, while its output for every 10 the number of his party.
Zyz
- 输入一个数 求出该数的质因子 采用先求因子 再判断是否为质数的方法 -Enter a number of prime factors of the number obtained using the first factor and then seek to determine whether the method for the prime number
F3_
- 一个质数判断算法,判断一个数是否为质数!-Just if "zhishu"
Judgment-is-one-number-for-primes
- 判断一个数是否为质数 采用较先进的方法 速度较快-Judgment is one number for primes Use advanced method faster
ZHISHU
- 输入一个数M,判断它是否为质数。所用的方法是从一到根号M,一次除,判断余数是否为零。-Input a number M, judge whether it for prime Numbers. The way from one to the square M, a except, judge whether remnant to zero.
IsPrime
- 判断一个数是否为质数,使用BigInteger结构,进行大数的运算-To judge whether a number is prime, the use of BigInteger structure is very useful for large numbers of computing
PrimeNumTest
- 输入一个大数,最快速度判断它是否为质数,并给出所耗时间。(Enter a large number to determine whether it is a prime number)