tyrex.util
Class Primes

java.lang.Object
  extended bytyrex.util.Primes

public final class Primes
extends java.lang.Object

This class provides a single service. It returns the next prime number that is larger than the required value. The prime table ranges between 11 and 2893249.

Version:
$Revision: 1.2 $ $Date: 2001/03/12 19:20:21 $
Author:
Assaf Arkin

Constructor Summary
Primes()
           
 
Method Summary
static int nextPrime(int value)
          Returns the lowest prime number that is higher than the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primes

public Primes()
Method Detail

nextPrime

public static int nextPrime(int value)
Returns the lowest prime number that is higher than the specified value.

Parameters:
value - The specified value
Returns:
The lowest prime number higher than the value


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.