From 6089bacb482e4117413eed4165575fb8ef7e0ff4 Mon Sep 17 00:00:00 2001 From: augusto-mantilla Date: Fri, 8 Nov 2019 05:29:13 +0000 Subject: [PATCH] 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. --- subjects/fprime.en.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index 147c115a..457a286d 100644 --- a/subjects/fprime.en.md +++ b/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$ ```