Login Register






[Challenge:1] Multiples of 3 and 5 filter_list
Author
Message
[Challenge:1] Multiples of 3 and 5 #1
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
Don't just answer this share the code that made you solve it.
If done you'll get yourself 50 points.
For extra 50 points do a function to reverse that sum and a function to sort it in ascending order.

Example:if the sum was 8673 reversing function will change it to 3768 and sorting it in ascending order will make it 3678

Happy coding guys !!


Java C++ C  Python and Ruby and GO can't be used anymore for this challenge, but there's plenty of languages you can work with
(This post was last modified: 12-03-2016, 12:50 PM by Vi-Sion.)

Reply





Messages In This Thread
[Challenge:1] Multiples of 3 and 5 - by Vi-Sion - 11-25-2016, 08:23 PM
RE: Multiples of 3 and 5 - by Pikami - 11-25-2016, 08:57 PM
RE: Multiples of 3 and 5 - by Vi-Sion - 11-25-2016, 09:01 PM
RE: Multiples of 3 and 5 - by Pikami - 11-25-2016, 10:08 PM
RE: Multiples of 3 and 5 - by DarkMuse - 11-25-2016, 09:58 PM
RE: Multiples of 3 and 5 - by Nyx - 11-25-2016, 10:06 PM
RE: Multiples of 3 and 5 - by Inori - 11-25-2016, 10:39 PM
RE: Multiples of 3 and 5 - by Nil - 11-25-2016, 10:51 PM
RE: Multiples of 3 and 5 - by Vi-Sion - 11-26-2016, 01:26 PM
RE: Multiples of 3 and 5 - by bitm0de - 11-27-2016, 12:46 AM
RE: Multiples of 3 and 5 - by Pikami - 11-27-2016, 10:17 AM
RE: Multiples of 3 and 5 - by Vi-Sion - 11-27-2016, 01:17 PM
RE: Multiples of 3 and 5 - by lux - 11-30-2016, 09:29 PM
RE: Multiples of 3 and 5 - by Vi-Sion - 11-30-2016, 10:11 PM