I need to find the total of prime numbers less than or equal to a given natural number. Ex, with natural number (n) = 4, than the total = 2 +3 = 5.
I wrote the below