diff --git a/jiyunpar/math/11653.cpp b/jiyunpar/math/11653.cpp new file mode 100644 index 0000000..08b73ce --- /dev/null +++ b/jiyunpar/math/11653.cpp @@ -0,0 +1,24 @@ +#include + +using namespace std; + +int main(void) +{ + ios::sync_with_stdio(0); + cin.tie(0); + + int n; + cin >> n; + int i = 2; + while (n > 1) + { + if (n % i == 0) + { + cout << i << '\n'; + n /= i; + continue; + } + ++i; + } + return (0); +}