搜索资源列表
Primes
- 1.计算n至少多大时,以下不等式成立。 1+1/2+1/3+……+1/n>10 2.请分别用break和continue语句判断1-1000以内的素数个数。 3.编写一个程序找出100~1000之间的所有姐妹素数。(注: 姐妹素数是指相邻两个奇数均为素数。)
Algorithm
- java 实现的一些算法: 赛选法求素数,最短路径(dijkstra,floyd),线段树,LCD,LCM-java implementation of a number of algorithms: tournament selection method Primes, the shortest path (dijkstra, floyd), segment tree, LCD, LCM
sushu
- 判断是否是素数,计算一共有几个素数。并求出所有素数的和。-To determine whether a prime number, calculate a total number of primes. And to find all prime numbers and.
J_Prime
- 计算并输出100以内的所有素数,计算并输出这些素数之和-Calculate and output all the prime numbers less than 100, calculate and output the Primes
primesToFile
- 搜索质数,并将其输出至文件,路径在程序中设置。-put primes to file
E
- 检测哥德巴赫猜想的代码,把一个大于等于6的偶数,分成两个奇质数的和!-Goldbach conjecture code detection, a greater than or equal to 6, even, into two odd primes!
gedebashi
- 歌德巴斯猜想:1.每个不小于6的偶数都可以表示为两个奇素数之和;2.每个不小于9的奇数都可以表示为三个奇素数之和。-Song De Basi guess: 1 each even-numbered not less than 6 can be expressed as the sum of two odd prime 2 each odd number not less than 9 can be expressed as the sum of three odd primes.
prime_array
- 一种采用简便的筛选法,筛选素数的java源代码-A simple method of the screening, screening primes Java source code
shiyan
- 在main函数中调用函数fun(int[] a, int m),(其中m是在main中用键盘输入的小于100的整数),用fun 函数找出大于整数m,并且邻接m的5个素数,将这5个素数,用a数组接收,并在main中输出;(请根据题 目完成main和fun函数的编写)。int static fun(int[] a, int m)-In the main function calls the function fun, (int [] a, int m) (where m is a
guss--primes
- java编写的一个猜素数的小程序,输入一个整数,判断是否是素数-java write a small program to guess primes, enter an integer to determine whether the prime number
JavaApplication36
- java 求质数小程序 判断数字是否为质数 并给出判断-java seeking primes small program to determine whether the number is a prime number, and given the judgment
ProgressBarDemo
- 用java语言,列出从2开始的前n个素数,并用进度条显示进度-Java language, listed from 2 to start the first n primes, and the progress bar shows the progress
sushu
- java实现的求解输出指定范围内的素数的程序,利用的循环的语法。-primes program in java implemented to solve the output within the specified range, the use of the loop syntax.
prime
- 判断101-200之间有多少个素数,并输出所有素数。 1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。 */ -Determine 101-200 between the number of primes, and output of all primes. A program analysis: judgment Primes: respectively removed by a number of 2 to s
file
- 将指定范围内的所有素数写入整数类型的文件。-Write all primes within the specified range of the integer type of file.
12-03
- 判断N到M间素数的个数,说明:使用JDK软件直接附加次文件夹即可,源码文件在src文件夹内。-Determine N to the number of M between primes Descr iption: the JDK software direct attached folder to source files in the src folder within.
sushu
- java 可以显示素数的程序,简单易行,方便可用-java primes program is simple, and accessible
1000desushu
- 200到1000的素数全部输出来了,采用for循环算法,简单的搞笑的得出结果来。-200-1000 primes come full output, using a for loop algorithm, a simple draw funny results.
Demo02
- 题目:判断101-200之间有多少个素数,并输出所有素数。 程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。 -Title: Determine the number between 101-200 primes and outputs all primes. Program analysis: determine the primes method: a few were removed from 2 to sqrt
PRIMES
- 输入2个整数,找出这两个整数中的所有质数-input a and b , find all primes between a and b