Commit d245f3d4 authored by Nayuki's avatar Nayuki

P124, P127, P549: Changed word capitalization for consistency.

parent 49b26c6f
......@@ -19,7 +19,7 @@ public final class p124 implements EulerSolution {
private static final int LIMIT = 100000;
public String run() {
// Modification of the Sieve of Eratosthenes
// Modification of the sieve of Eratosthenes
int[] rads = new int[LIMIT + 1];
Arrays.fill(rads, 1, rads.length, 1);
for (int i = 2; i < rads.length; i++) {
......
......@@ -38,7 +38,7 @@ public final class p127 implements EulerSolution {
private static final int LIMIT = 120000;
public String run() {
// Modification of the Sieve of Eratosthenes
// Modification of the sieve of Eratosthenes
int[] rads = new int[LIMIT];
Arrays.fill(rads, 1, rads.length, 1);
for (int i = 2; i < rads.length; i++) {
......
......@@ -63,7 +63,7 @@ public final class p549 implements EulerSolution {
private static final int LIMIT = Library.pow(10, 8);
public String run() {
// Modification of the Sieve of Eratosthenes
// Modification of the sieve of Eratosthenes
int[] smallestDivisibleFactorials = new int[LIMIT + 1];
for (int i = 2; i < smallestDivisibleFactorials.length; i++) {
if (smallestDivisibleFactorials[i] == 0) {
......
......@@ -10,7 +10,7 @@
def compute():
LIMIT = 100000
# Modification of the Sieve of Eratosthenes
# Modification of the sieve of Eratosthenes
rads = [0] + [1] * LIMIT
for i in range(2, len(rads)):
if rads[i] == 1:
......
......@@ -27,7 +27,7 @@ import fractions
def compute():
LIMIT = 120000
# Modification of the Sieve of Eratosthenes
# Modification of the sieve of Eratosthenes
rads = [0] + [1] * (LIMIT - 1)
for i in range(2, len(rads)):
if rads[i] == 1:
......
......@@ -57,7 +57,7 @@ if sys.version_info.major == 2:
def compute():
LIMIT = 10**8
# Modification of the Sieve of Eratosthenes
# Modification of the sieve of Eratosthenes
smallestdivisiblefactorials = [0] * (LIMIT + 1)
for i in range(2, len(smallestdivisiblefactorials)):
if smallestdivisiblefactorials[i] == 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment