搜索资源列表
PrimeNum
- PrimeNum程序描述: 本程序包括:找100~200间的素数 主要是记住找素数的算法-PrimeNum procedures Descr iption : The procedures include : find 100 ~ 200 of the Primes is mainly remembered for a number of algorithm -
jueduisushu
- 一个自然数是素数,且它的数字位置经过任意对换后仍为素数,刚称为绝对素数,例如:13。试找出所有二位绝对素数。-a natural number is a prime number, and its position after arbitrary figures for the number of after-still, just as absolute prime, For example : 13. Tried to find out all the two absolute prime.
PrimeNumber
- C# 利用线程找出素数并将其显示,同时可通过按键控制线程的状态
14
- 算法功能:输入一个正整数,若其是素数,将其输出,否则,找出与其最邻近的素数,并输出这个素数。-Algorithm functions: enter a positive integer, if it is a prime number, output, otherwise identify their nearest prime number, and outputs the primes.
12
- 12. 编制具有如下原型的函数prime,用来判断整数n是否为素数:bool prime(int n) 而后编制主函数,任意输入一个大于4的偶数d,找出满足d=d1+d2的所有数对,其中要求d1与d2均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。 提示:i与d-i的和恰为偶数d,而且只有当i与d-i均为奇数时才有可能成为所求的“数对”。 -12. The preparation o
primNum
- 找到1到2000的素数,并找出连续整数和为1898的个数-1-2000 to find the prime numbers, and to identify 1898 consecutive integers and the number of
suan_fa
- 要实现的功能: 1.常用算法(求n阶乘、排序、求n~m的和、找素数) 2.数据录入(学生数据录入、名片录入) 3.组件使用(音乐浏览、学生档案、作者选择) 4.退出-Function is to be achieved: 1. Commonly used algorithm (for n factorial, sorting, and n ~ m and, to find prime numbers) 2. Data Entry (student data entry, c
FindPrime
- 找素数,这是个小程序,可以随意找出素数。这个程序也是个教学程序。-To find prime numbers, which is a small program, are free to find prime numbers. This procedure is also a teaching program.
5
- 编一个程序找出所有的由四个不同数字组成的素数。-Find all by four different number of primes.
findsushu
- 用筛选法可得到2~10000之间的所有素数,找出此序列中最长的等差序列(连续的和不连续的两种)。例如:3,5,7 为一连续等差序列,长度为3,公差为2;而7,13,19 为一不连续等差序列,长度为3,公差为6。-2 with the screening method available for all prime numbers between 10000 to find out the sequence of the longest arithmetic sequence (continuou
EX4
- 用Win32所提供的同步对象解决有限缓冲区问题:写一个过线程实现C/C++语言程序:一些线程负责找出某个范围的素数,并放到一个数组中。另一些线程负责将数组中的素数取出,依次显示 -Use Win32 synchronization objects provided by the limited buffer problem to solve: write a thread to achieve than C/C++ Language Program: responsible for a nu
number
- 该程序用简单的方法找出了与一个数m临近的k个素数,用户可输入m与k。-The program uses a simple method to find a number m with neighboring k primes, the user can input m and k.
2
- 用筛选法得到2~10000之间的所有素数,并找出其中的所有等差数列-2 with the screening method are all prime numbers between 10000 and to find out all the arithmetic progression
MYMFC2
- 寻找100以内素数,可以输入起始数和要找的素数个数-Find prime numbers less than 100, can enter the starting number and the number of prime numbers to find
4_12primenumber
- 输入正整数i和n,由程序负责从i开始找起,连续找出n个素数并显示在屏幕上-Enter a positive integer i, n, the program is responsible From i started looking on, to find n consecutive primes and displayed on screen
ex6_19
- 从命令行参数获取两个整数,找出两个整数之间的所有素数,每行输出3个数。-From the command line parameters for two integers, find two integers all prime numbers between each line of the output number 3.
Magic-square
- 魔方阵 (1).设n是奇数,请编写程序构造n*n阶魔方阵,即行、列、两对角线上n个数之和相等的方阵。 (2).构造3*3素数魔方阵,即找出9个不大于500的素数并排成魔方阵。 -Magic square (1) n is an odd number, please write a program to construct n* n-order magic square that line, column the two diagonal n numbers equal to the
ETP
- 从键盘上输入一个数据,判断其奇偶性,若是偶数,将其分解为2个素数之和(例如:6=3+3,18=11+7,.......),若是奇数,判断其是否为素数,若是素数,找出其孪生素数(例如:5的孪生素数为3和7,11的孪生素数为13,.......)-A data input from the keyboard, determine the parity For even, be decomposed into the sum of two primes (eg: 6 = 3+3, 18 = 11+7,
findprimenumber
- VS2008 下利用筛选法 实现找素数!-VS2008 use screening method to achieve the next to find prime numbers!
zhaosushu
- 这是一个书本上的找素数c++代码,适合初学者,希望你能喜欢-it’s a simple code