tyrex.util

Class Primes

public final class Primes extends 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

Method Summary
static intnextPrime(int value)
Returns the lowest prime number that is higher than the specified value.

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.