Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void putere(int n, int &d, int &p) {
- int dmax, pmax = 0;
- d = 2;
- while (n > 1) {
- p = 0;
- while (n % d == 0) {
- n /= d;
- p++;
- }
- if (p) {
- if (p >= pmax) {
- pmax = p;
- dmax = d;
- }
- }
- d++;
- p = 0;
- }
- p = pmax;
- d = dmax;
- }
- int main() {
- //call here
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement