include iostream include vector using namespace std int prime 20 int 2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <iostream>
#include <vector>
using namespace std;
int prime[20] = {0};
int k[20] = {0};
void fill_prime(long long a, int& ind) {
for (int i = 2; (long long)i * i <= a; i++)
if (a % i == 0) {
prime[ind] = i;
while (a % i == 0) {
a /= i;
k[ind]++;
}
ind++;
}
if (a != 1) {
prime[ind] = a;
k[ind]++;
ind++;
}
}
int main(){
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
long long a, N;
cin >> a >> N;
int ind = 0;
unsigned long long a_copy = a;
fill_prime(a, ind);
for (int i = ind - 1; i >= 0; i--) {
}
return 0;
}