There is only one prime number which is even - that is 2 - and it also happens to be less than 100. All other prime numbers are odd.
even numbers 1-100
The even numbers up to 100 are: 2 468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100.
Adding up all the even numbers from the first (2) to the fiftieth (100): [(100 + 2) / 2] x 50 = 2550 Can you see the logic of this method?
all the even numbers(#)
All numbers are used in all known languages, just spelt differntly, so no-one knows,sorry
Two solutions immediately spring to mind:Run over all the numbers in the range and if the number is even print it;run over the numbers starting with the first even number in the range using a step of 2 (so that only even numbers are considered) and print the numbers.
The only even prime number (not only from 1 to 100, but in general) is 2. All other even numbers are multiples of 2, and therefore, by definition, not prime numbers.