Lesnic

25

Apr 6th, 2021
381
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # максимально тупой варик, который страдает по времени (хз что там надо). Есть вариант через разложение, но там надо искать наибольшее простое разложение
  2. def check(num: int):
  3.     temp = 0
  4.     last = 0
  5.     if num % 1001 == 0:
  6.         print(num)
  7.     for i in range(3, num // 3 + 1, 2):
  8.         if num // i * i == num:
  9.             temp += 1
  10.             last = i
  11.     if temp == 70:
  12.         print(num, last)
  13.  
  14.  
  15. for i in range(321655, 654322, 2):
  16.     check(i)
  17.  
  18.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×