Find total of prime lesser or equal a given natural number

前端 未结 0 886
感情败类
感情败类 2021-01-01 16:52

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题