fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i,j;
  5. j=1;
  6. scanf("%d",&i);
  7. printf("%d\n",i);
  8. while(i%j==0){
  9. i%j;
  10. j++;
  11. }
  12. printf("%d",j);
  13.  
  14.  
  15. }
  16.  
  17.  
Success #stdin #stdout 0s 5308KB
stdin
1998
stdout
1998
4