Từ 2025 HEMS 6
Thông tin
include <bits/stdc++.h>
using namespace std; void tach(long long n) {
while (n % 2 == 0) {
cout<<2<<" ";
n /= 2;
}
for (long long i = 3; i * i <= n; i += 2) {
while (n % i == 0) {
cout<<i<<" ";
n /= i;
}
}
if (n > 2) cout<<n<<" ";
} int main() { long long t; cin>>t;
tach(t);
}