Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdint.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. uint64_t number = 6008514753143;
  8.  
  9.  
  10. for(uint64_t i = number/2;i>7;i--)
  11. {
  12. if(number%i == 0)
  13. {
  14. if(i%2!=0 && i%3!=0 && i%5!=0 && i%7!=0)
  15. {
  16. cout << i << endl;
  17. return 0;
  18. }
  19. }
  20. }
  21.  
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement