net.jxta.search.util
Class PrimeService

java.lang.Object
  |
  +--net.jxta.search.util.PrimeService

public class PrimeService
extends java.lang.Object

Prime number generator taken out of libbow-20000915/primes.c See http://www.cs.cmu.edu/~mccallum/bow


Constructor Summary
PrimeService()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 int nextPrime(int n)
          Return the next prime greater than or equal to n.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimeService

public PrimeService()
Method Detail

main

public static void main(java.lang.String[] argv)

nextPrime

public int nextPrime(int n)
Return the next prime greater than or equal to n.