diff --git a/src/Problems.rs b/src/Problems.rs index 489324e..4a917ca 100644 --- a/src/Problems.rs +++ b/src/Problems.rs @@ -3,6 +3,23 @@ // Created: 06-11-20 //Modified: 06-15-20 //This file just forwards all the problem modules +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses +/* + Copyright (C) 2020 Matthew Ellison + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ pub mod Answer; diff --git a/src/Problems/Answer.rs b/src/Problems/Answer.rs index 72c4264..6203a35 100644 --- a/src/Problems/Answer.rs +++ b/src/Problems/Answer.rs @@ -1,8 +1,27 @@ //ProjectEulerRust/src/Problems/Answer.rs //Matthew Ellison // Created: 06-11-20 -//Modified: 06-13-20 +//Modified: 06-15-20 //A structure to hold the answer to the problem +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses +/* + Copyright (C) 2020 Matthew Ellison + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + + pub struct Answer{ result: String, time: String, diff --git a/src/Problems/Problem1.rs b/src/Problems/Problem1.rs index 64e2505..f688e86 100644 --- a/src/Problems/Problem1.rs +++ b/src/Problems/Problem1.rs @@ -3,7 +3,7 @@ // Created: 06-12-20 //Modified: 06-13-20 //What is the sum of all the multiples of 3 or 5 that are less than 1000 -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem2.rs b/src/Problems/Problem2.rs index f2b2197..c357619 100644 --- a/src/Problems/Problem2.rs +++ b/src/Problems/Problem2.rs @@ -3,7 +3,7 @@ // Created: 06-12-20 //Modified: 06-13-20 //The sum of the even Fibonacci numbers less than 4,000,000 -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem3.rs b/src/Problems/Problem3.rs index 21ee560..7fd124d 100644 --- a/src/Problems/Problem3.rs +++ b/src/Problems/Problem3.rs @@ -3,7 +3,7 @@ // Created: 06-13-20 //Modified: 06-13-20 //The largest prime factor of 600851475143 -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem4.rs b/src/Problems/Problem4.rs index f8465b4..8bccecb 100644 --- a/src/Problems/Problem4.rs +++ b/src/Problems/Problem4.rs @@ -3,7 +3,7 @@ // Created: 06-14-20 //Modified: 06-14-20 //Find the largest palindrome made from the product of two 3-digit numbers -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem5.rs b/src/Problems/Problem5.rs index dd60eb9..e22ec2b 100644 --- a/src/Problems/Problem5.rs +++ b/src/Problems/Problem5.rs @@ -3,7 +3,7 @@ // Created: 06-15-20 //Modified: 06-15-20 //What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem6.rs b/src/Problems/Problem6.rs index 3cecb6f..874ffbc 100644 --- a/src/Problems/Problem6.rs +++ b/src/Problems/Problem6.rs @@ -3,7 +3,7 @@ // Created: 06-15-20 //Modified: 06-15-20 //Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/Problems/Problem7.rs b/src/Problems/Problem7.rs index ec34664..90885f8 100644 --- a/src/Problems/Problem7.rs +++ b/src/Problems/Problem7.rs @@ -3,7 +3,7 @@ // Created: 06-15-20 //Modified: 06-15-20 //What is the 10001th prime number? -//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses /* Copyright (C) 2020 Matthew Ellison diff --git a/src/main.rs b/src/main.rs index 2424847..3409033 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,25 @@ //ProjectEulerRust/src/main.rs //Matthew Ellison // Created: 06-11-20 -//Modified: 06-11-20 +//Modified: 06-15-20 //This is a driver function for the Project Euler solutions in Rust +//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/RustClasses +/* + Copyright (C) 2020 Matthew Ellison + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ #![allow(non_snake_case)]