mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Fixed some typos
This commit is contained in:
@@ -34,7 +34,7 @@ public class Problem3 extends Problem{
|
|||||||
private static final BigInteger NUMBER = BigInteger.valueOf(600851475143L);
|
private static final BigInteger NUMBER = BigInteger.valueOf(600851475143L);
|
||||||
|
|
||||||
public Problem3(){
|
public Problem3(){
|
||||||
super("The largest prime factor of 600851475143");
|
super("What is the largest prime factor of 600851475143?");
|
||||||
}
|
}
|
||||||
public void solve(){
|
public void solve(){
|
||||||
//Start the timer
|
//Start the timer
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class Problem4 extends Problem{
|
|||||||
|
|
||||||
//Start at the first 3-digit number and check every one up to the last 3-digit number
|
//Start at the first 3-digit number and check every one up to the last 3-digit number
|
||||||
for(Integer firstNum = START_NUM;firstNum <= END_NUM;++firstNum){
|
for(Integer firstNum = START_NUM;firstNum <= END_NUM;++firstNum){
|
||||||
//You can start at the locatio of the first number because everything before that has already been tested. (100 * 101 == 101*100)
|
//You can start at the location of the first number because everything before that has already been tested. (100 * 101 == 101 * 100)
|
||||||
for(Integer secondNum = firstNum;secondNum < END_NUM;++secondNum){
|
for(Integer secondNum = firstNum;secondNum < END_NUM;++secondNum){
|
||||||
//Get the product
|
//Get the product
|
||||||
Integer product = firstNum * secondNum;
|
Integer product = firstNum * secondNum;
|
||||||
|
|||||||
Reference in New Issue
Block a user