Guest User

Untitled

a guest
Sep 15th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.27 KB | None | 0 0
  1. import std.stdio;
  2.  
  3. void main(){
  4.  
  5. ulong nombre = 600851475143;
  6. uint i;
  7.  
  8.     if(nombre%2 == 0)
  9.         nombre /= 2;
  10.        
  11.     for(i = 3; i < nombre; i+=2){
  12.        
  13.         if(nombre % i == 0)
  14.             nombre /= i;
  15.     }
  16.    
  17.     write(nombre);
  18.    
  19. }
Add Comment
Please, Sign In to add comment