|
|
|
@ -4,9 +4,9 @@
|
|
|
|
|
|
|
|
|
|
Write a program that takes a positive integer as argument and displays the sum of all prime numbers inferior or equal to it followed by a newline. |
|
|
|
|
|
|
|
|
|
- If the number of arguments is not 1, or the argument is not a positive number, just display 0 followed by a newline. |
|
|
|
|
- If the number of arguments is not 1, or if the argument is not a positive number, the program displays 0 followed by a newline. |
|
|
|
|
|
|
|
|
|
Example of output : |
|
|
|
|
Examples of outputs : |
|
|
|
|
|
|
|
|
|
```console |
|
|
|
|
student@ubuntu:~/piscine/test$ go build |