edu.rit.hyb.prime
Class PrimeCountFunctionSeq
- java.lang.Object
-
- edu.rit.hyb.prime.PrimeCountFunctionSeq
-
public class PrimeCountFunctionSeq extends java.lang.ObjectClass PrimeCountFunctionSeq is a sequential program that calculates the prime counting function π(x). π(x) is the number of primes less than or equal to x. The program uses a list of 32-bit primes stored in a file. The prime file must be generated by the Prime32File program. To find the primes, the program calculates a series of sieves. Each sieve consists of one million numbers.Usage: java edu.rit.hyb.prime.PrimeCountFunctionSeq x primefile
x = Argument of prime counting function, 0 <= x <= 263-1
primefile = Prime file nameThe computation is performed sequentially in a single processor. The program measures the total running time. This establishes a benchmark for measuring the running time on a parallel processor.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)Main program.
-
DMelt 3.0 © DataMelt by jWork.ORG