搜索资源列表
Java-exercise
- 输出指定范围内的素数;输出400以内的Smith数SMITH数是指满足下列条件的可分解的整数: 其所有数位上的数字和等于其全部素数因子的数字总和。-Primes within the specified range of output output within 400 Smith SMITH number refers to the number of integer decomposable satisfy the following conditions: all of its digi
java-five-code
- 函数一:判断从3到100之间有多少个素数,并输出所有的素数 函数二:如果一个数恰好等于它的因子之和,那么这个数就称为 "完数 ".此程序是找出1--500之间的所有完数并输出出来 函数三:有1、2、3四个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 函数四:输入三个整数a,b,c,请把这三个数由小到大输出。 函数五:输出乘法表(9*9)-Function one: determine how many prime numbers between 3-100 from
1106
- ACM1106题:“自然科学的皇后是数学。数学的皇冠是数论。哥德巴赫猜想,则是皇冠上的明珠。”哥德巴赫猜想表述为:任一大于2的偶数都可写成两个质数之和。当然我们今天不是来证明哥德巴赫猜想的,而是验证对于比较小的偶数其猜想是否成立。 Input数据的第一行是一个正整数T(0<T<=100),表示有T组测试数据。 每组测试数据只有一行,为一个偶数M(2<M<=100000),表示要验证的偶数。Output对于每组测试数据,在一行上输出两个质数A,B(A<=B),
IsPrime
- 判断一个数是否为质数,使用BigInteger结构,进行大数的运算-To judge whether a number is prime, the use of BigInteger structure is very useful for large numbers of computing
JAVA
- 1百分制分数到等级分数 2成法口诀阵形 3华氏和摄氏的转换法 4三个数的最大数 5简单计算器的小程序 6三角形图案 7输出输入的姓名 8一小时倒计时小程序 9棋盘图案 10数组输出唐诗 11找出满足条件的最小数 12判断一个数是否是素数 13一个数倒序排列 14将一个整数以二进制输出 15矩形图案 16猜数字 17.Ho
emp8
- ★实验任务 正如你所知道的 s_sin 是一个贪玩的不得了的小 P 孩(如果你非常讨厌他可以直接跳到 第二段),你也知道他最近很喜欢玩一个叫做太阳帝国的原罪的策略游戏我向你保证这是太 阳帝国原罪系列的第八章了。 sin_s 通过游戏学到一个数论知识:任何一个大于 1 的自然数,都可以唯一分解成有限 个质数的乘积 ,这里 都是质数,其诸指数 是正整 数。例如: sin_s 现在想求出上述定理 P1,P2,...,Pn 和 a1,a2,...an,例如 1200 你需要求
[Es.-Lezione-15]-Fattori
- The program take in input a range of [a, b] returns the average number of prime factors of the numbers in the range .
Analyzing-reversible-primes
- 输入一个数,判断它是不是可逆素数,输出yes或no。-Enter a number, it is determined that it is not reversible prime, output yes or no.
fenjiesuyinsu
- 对一定范围内的数,将其分解为若干素数相乘的结果,用C语言实现,文件保存的是cpp,其中应用到了某些c++的特性。-Within a certain range of the number, which break down as the result of a number of prime numbers multiplied, using C language, the file is saved cpp, which apply to the characteristics of cert
1015
- 浙大 编程能力测试 的甲级题目 第 1015. Reversible Primes (20) 数字特征问题 关于给定进制数 判断一个数据是否符合给定特征-A reversible prime in any number system is a prime whose reverse in that number system is also a prime. For example in the decimal system 73 is a reversible prime because
sgu261
- sgu261:Discrete Roots(原根+离散对数+扩展欧几里得) 题目大意: 给你两个质数p,k,和整数a(0≤a<p),求解所有满足x^k≡a(mod p)的x。-261. Discrete Roots time limit per test: 1 sec. memory limit per test: 65536 KB input: standard output: standard There are a lot of
transfer2
- 一个偶数总能表示为两个素数之和,可以运行,亲测可用-An even number can be expressed as the total number of two prime, can run, pro-test available
10301_PrimeCalc
- 质数计算器:判断一个数字是否为质数。C#编写,使用新进程进行计算,可在计算中直接退出;带有错误捕捉。-A calculator: test whether a number is prime. writing in C#, using the new process to calculate, can be directly out of the calculation with the wrong capture.
Is-Pirme
- 判断一个数是否为素数,用线程实现。一个线程产生一个随机数(1-99),另一个线程隔一段时间取该线程的数并进行比较。-Determine if a number is prime, with threads implementation. A thread generates a random number (1-99), another thread time to time to take a few of the threads and compared.
wq
- 判断一个正整数是否为素数,如不是则输出其所有约数-Analyzing a positive integer is prime, if not then it is about the number of output
2
- 在n*n的棋盘上(1<=n<=10)填入1、2、3、….、n*n,共有n*n个数,使得任意相邻数的和为素数。 输入:n 输出:若有多个解,则需输出第一行、第一列之和均为最小的排列方案;若无解,则输出‘no’。-On board n* n (1 <= n <= 10) filled with 1,2,3, ...., N* n, a total number of n* n, so that any adjacent, and the number of prime
fjzys
- 你只需要输入一个大于2的数,就能自动判断这个数是否是素数,如果不是素数就自动分解质因数。 -you only need to import a few of the more than 2, will automatically judge whether the number is prime, prime, if not automatically decomposition quality factor.
Resheto_Eratosfena
- Sieve of Eratosthenes algorithm for finding all prime numbers up to a whole number n.
shuxuegongju
- Android项目源码显示质数和素数的数学工具是一个数学工具项目源码,可以很方便的显示出固定范围的素数和质数之和或者质数的数量。是一个专业性比较强的项目。一般人用不到。-Android project source code display mathematical tool for prime numbers and prime is a mathematical tool for project source code, can easily display the number of fi
DAZHENGSHUDEYUNSUAN
- 随机大质数和大随机数产生算法的设计与实现-Design and implementation of algorithms random large prime numbers and large random number generation