aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/softsynth/math/PrimeFactors.java
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2016-03-23 09:26:52 -0700
committerPhil Burk <[email protected]>2016-03-23 09:26:52 -0700
commiteeafc364cbd39edc794748a0f2c0626e09ee9bb5 (patch)
tree5f4bef6827f6bd9c29b1ccdf8f2a1fde5000381c /src/com/softsynth/math/PrimeFactors.java
parent8b705f45ff6618383c2df8d7bd14bd2b61e21cee (diff)
Add doc target to ant build.xml
Also fixed Javadoc errors.
Diffstat (limited to 'src/com/softsynth/math/PrimeFactors.java')
-rw-r--r--src/com/softsynth/math/PrimeFactors.java16
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];
}
/**