Write a program to find the sum of all the prime numbers which are less than or equal to a given number.
e.g. the user enters 6 and the program outputs 10 … (2+3+5)
Write a program to find the sum of all the prime numbers which are less than or equal to a given number.
e.g. the user enters 6 and the program outputs 10 … (2+3+5)