PlanttPastes

euler 47

Jun 25th, 2026
41
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. bool fdp(int n) {
  4.     int div = 0;
  5.     for (int i = 2; i * i <= n; i++) {
  6.         if (!(n % i)) {
  7.             if (++div > 4) return false;
  8.             while (!(n % i)) n /= i;
  9.         }
  10.     }
  11.     if (n) ++div;
  12.     return div == 4;
  13. }
  14. signed main() {
  15.     ios::sync_with_stdio(0);
  16.     cin.tie(0); cout.tie(0);
  17.     int i = 2, s;
  18.     while (i++) {
  19.         if (fdp(i)) {
  20.             if (++s == 4) {
  21.                 cout << i - 3;
  22.                 return 0;
  23.             }
  24.         }
  25.         else s = 0;
  26.     }
  27. }
Advertisement
Comments
  • User was banned
  • User was banned
  • Rokzalny
    29 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment