diff options
Diffstat (limited to 'src/com/softsynth/math/PrimeFactors.java')
-rw-r--r-- | src/com/softsynth/math/PrimeFactors.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/softsynth/math/PrimeFactors.java b/src/com/softsynth/math/PrimeFactors.java index 5607951..06c0d55 100644 --- a/src/com/softsynth/math/PrimeFactors.java +++ b/src/com/softsynth/math/PrimeFactors.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,7 +21,7 @@ import java.util.ArrayList; /** * Tool for factoring primes and prime ratios. This class contains a static array of primes * generated using the Sieve of Eratosthenes. - * + * * @author Phil Burk (C) 2011 Mobileer Inc */ public class PrimeFactors { @@ -170,13 +170,13 @@ public class PrimeFactors { /** * Get prime from table. - * - * @warning Do not exceed getPrimeCount()-1. - * @param i + * + * + * @param n Warning: Do not exceed getPrimeCount()-1. * @return Nth prime number, the 0th prime is 2 */ - public static int getPrime(int i) { - return primes[i]; + public static int getPrime(int n) { + return primes[n]; } /** |