|
|
|
## fprime
|
|
|
|
|
|
|
|
### Instructions
|
|
|
|
|
|
|
|
Write a program that takes a positive `int` and displays its prime factors, followed by a newline(`'\n'`).
|
|
|
|
|
|
|
|
- Factors must be displayed in ascending order and separated by `*`.
|
|
|
|
|
|
|
|
- If the number of parameters is different from 1, the program displays a newline.
|
|
|
|
|
|
|
|
- The input, when there is one, will always be valid.
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```console
|
|
|
|
student@ubuntu:~/piscine-go/test$ go build
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test 225225
|
|
|
|
3*3*5*5*7*11*13
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test 8333325
|
|
|
|
3*3*5*5*7*11*13*37
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test 9539
|
|
|
|
9539
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test 804577
|
|
|
|
804577
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test 42
|
|
|
|
2*3*7
|
|
|
|
student@ubuntu:~/piscine-go/test$ ./test
|
|
|
|
|
|
|
|
student@ubuntu:~/piscine-go/test$
|
|
|
|
```
|