Problem 53965. Easy Sequences 67: Project Euler Problem 1 - Not Again!!!
Solution Stats
Problem Comments
-
2 Comments
Hi David,
I avoided exceeding 'flintmax', minimized multiplication, division and conditional statements. For small n's, like in test 7, | only used a simple sieving algorithm. I also checked my solution with Elixir, and Java and I still get the same result for test 7.
I initially did a sieving algorithm, but it was not efficient enough for large n. I did not consider splitting with two different algorithms.
Solution Comments
Show commentsProblem Recent Solvers2
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15685 Solvers
-
Test if a Number is a Palindrome without using any String Operations
243 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
713 Solvers
-
Get the length of a given vector
12309 Solvers
-
5508 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!