I will provide a solution for problem 2 in Scala. I think I will mark each solution moving forward as being just a solution. I have received feedback that someone can find this and learn bad style or not learn the language properly. I don’t want that to happen and you have been warned. The…

# Tag: Scala

## Project Euler Problem 1 Revisited

Part 1,2 I posted my original solution on Reddit. I received positive feedback and not so positive feedback. The best solution I seen so far is. 1 3 * 333 * 334 / 2 + 5 * 199 * 200 / 2 – 15 * 66 * 67 / 2 Yes, elegant indeed. Special thanks…

## Project Euler Problem 1

Part 1,2 Project Euler problem 1 wants a person to find the sum of all numbers less than 1000 that are divisible by 3 and 5. I was able solve this problem pretty easily in Scala. My solution is very similar to how I would solve the problem in Java. Quickly glancing at the code,…