#include <stdio.h>
int main() {
    int a=2,b,ip=1,n,ct=0;scanf("%d",&n);
    while(n%a!=0){
        a++;
        b=n/a;
    }
    for(;ip<=b;ip++){
            if(ct>=2)break;
            if(n%ip==0)ct++;
    }
    printf((ct==2)?"wrong number":"%d %d",a,b);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: