Browse Source

Add exception for value 1

This subject was modified to fit the solutions (which is wrong), but it needs change back ones the solution is fixed. 1 has no prime factors.
content-update
augusto-mantilla 5 years ago committed by GitHub
parent
commit
6089bacb48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/fprime.en.md

4
subjects/fprime.en.md

@ -10,6 +10,8 @@ Write a program that takes a positive `int` and displays its prime factors, foll
- The input, when there is one, will always be valid.
- In this exercise the primes factor of 1 is consider as 1
### Usage
```console
@ -28,5 +30,7 @@ student@ubuntu:~/piscine-go/test$ ./test a
student@ubuntu:~/piscine-go/test$ ./test 0
student@ubuntu:~/piscine-go/test$ ./test 1
1
student@ubuntu:~/piscine-go/test$
```

Loading…
Cancel
Save