5
The sum of 2 and 97 is 99.
1, 3, 5, 7, 9, 11 and just keep adding 2 until you get to 99.
They are the numbers that have more than two factors
The sum of all odd numbers from 1 to 64 inclusive is 4,096
738 numbers
5
Any multiple of 2520.
20.
The sum of 2 and 97 is 99.
1, 3, 5, 7, 9, 11 and just keep adding 2 until you get to 99.
write an algo to find the sum of even number from 1to n
They are the numbers that have more than two factors
1to 100
The sum of all odd numbers from 1 to 64 inclusive is 4,096
11. 10, 20, 30, 40, 50, 60, 70, 80 and 90 have One 0's each plus the number 100 has Two 0's hence making the total as 11.
20 remember to include 60, 61, 62, 63, 64, 65, 66 ........