搜索资源列表
编写一个判断一个数字是否是素数的函数
- 编写一个判断一个数字是否是素数的函数,利用该函数求200以内的素数之和。(素数指除了1和它本身之外,该数没有其他因子,例如101就是一个素数。)-Write a judge whether a number is prime function, using the function evaluation within 200 prime numbers. (In addition to a prime number, and it refers to itself, not the number
vpmotion_game
- vega prime与C++混合编程实例,模拟第一人称游戏运动,可以左转右转向前向后,类似CS运动模式,能精确调整速度,加速度等数值,可以用键盘和鼠标互动。-This sample illustrates the use of the game motion model (vpMotionGame). It defines the class myApp, which is derived from vpApp, and overrides the vpApp::onKeyInput() me
prime_number
- A program to find out all prime number.
prime
- 高效求素数算法!用6n大筛子的方法,具体看附件!-primer algorithms
2PRIME
- This program calculates all possible combination of two prime numbers which produce a given even number.-This program calculates all possible combination of two prime numbers which produce a given even number.
c++
- Fast prime calculator
04
- 编写一个判断一个数字是否是素数的函数,利用该函数求200以内的素数之和。(素数指除了1和它本身之外,该数没有其他因子,例如101就是一个素数。)-Write a judge whether a number is prime function, using the function evaluation within 200 prime numbers. (In addition to a prime number, and it refers to itself, not the number
vpmotion_ufo
- vega prime与C++混合编程实例,模拟飞碟运动,不受惯性重力影响,可以左转右转,加速减速,突然加速、停止等功能,可以用键盘和鼠标控制。-This sample illustrates the use of the UFO motion model (vpMotionUFO). It defines the class myApp, which is derived from vpApp, and overrides the vpApp::onKeyInput() method to a
vpmotion_walk
- vega prime与C++混合编程实例,模拟步行运动,可以实现左转右转,前进后退等功能,遇到障碍物会碰撞,可以调节身高速度等数值,可以用键盘和鼠标互动。-This sample illustrates the use of the walk motion model (vpMotionWalk) and a user defined collision detection position strategy. It defines the class myApp, which is deri
sangesusheheweiqishu
- 此程序是在vc6.0的环境下试验过的,源代码是从vc6.0的运行环境中复制下来的。三个素数之和为奇数,输出时可以整齐现实,仅供参考,是个很简单的程序-This program is an environment in vc6.0 tested, the source code from the operating environment vc6.0 copied down. Three prime numbers is odd, the output can be neatly reality,
Prime_test
- 判断一个数是否是素数。这个数可以是很大的大数。功能实现了对大数的素数判断。-To judge whether a number is prime. This number can be very large numbers. The function of judgment on the large numbers of prime numbers.
3.5.2
- 特殊情况下的素数分类。考虑了内存与cpu双重因素。-Prime number in the special case of classification. Consider the memory with cpu dual factors.
AStar
- A星算法测试代码,可以对了解路径搜素算法有所启发-A star algorithm test code, you can understand the path search algorithm prime inspiration
Prime_Numbers_Calculation
- Calculates all Prime Numbers till a destinated end. Good for educational purpose.
Prime_Numbers
- Calculates prime numbers with use of the "Sieve of Eratosthenes".
BigInt
- 大整数的四则运算以及用米勒拉丁法来产生大素数-Large integer calculation and generation of large prime numbers
Reversible_primes
- 素数幻方 求四阶的素数幻方。即在一个4X4 的矩阵中,每一个格填 入一个数字,使每一行、每一列和两条对角线上的4 个数字所组成的四位数,均为可逆素数。-Prime magic square For fourth order prime magic square.Namely in a 4 x4 matrix, fill in each case a number, make each row, each column and two of the four Numbers on the
2008
- 北航2008复试上机。 1.素数 输入一个整数,要求输出所有从1到这个整数之间个位为1的素数,如果没有则输出-1(30分) 2.旋转矩阵 任意输入两个9阶以下矩阵,要求判断第二个是否是第一个的旋转矩阵,如果是,输出旋转角度(0、90、180、270),如果不是,输出-1。 要求先输入矩阵阶数,然后输入两个矩阵,每行两个数之间可以用任意个空格分隔。行之间用回车分隔,两个矩阵间用任意的回车分隔。(60分) 3.字符串匹配 从string.in
zhongguo
- 中国剩余定理(不互质的情况) 对互质的情况,处理起来比较方便,可以直接套模板 本题给出不互质的模线性方程组,求出满足方程的最小正整数解 方案:对于不互质的模线性方程组,可以进行方程组合并,求出合并后的方程的解,这样就可以很快地推出方程的最终解。-Chinese remainder theorem (not prime case) to prime, the process more convenient, you can directly set the template of th
sushu
- 最高效的筛素数方法,保证每个非素数只被筛去一次。可以筛很大的数-The most efficient method of screening primes, to ensure that each non-prime number to be screened only once. You can screen a large number of
