Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdint.h>
- using namespace std;
- int main()
- {
- uint64_t number = 6008514753143;
- for(uint64_t i = number/2;i>7;i--)
- {
- if(number%i == 0)
- {
- if(i%2!=0 && i%3!=0 && i%5!=0 && i%7!=0)
- {
- cout << i << endl;
- return 0;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement