@Mosrod/

MultiFinder

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.11717824771940077","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHRpbWUKbnVtYmVyID0gaW50KGlucHV0KCJOdW1iZXI6ICIpKQoKaSA9IDEKZGl2cyA9IDAKCnggPSBpbnQoKG51bWJlciAqKiAoMS8yKSkgKiAxMCkKCgpzdGFydF90aW1lID0gdGltZS50aW1lKCkKCgpkZWYgc3RhbXAoKToKICAgIHQgPSB0aW1lLnRpbWUoKSAtIHN0YXJ0X3RpbWUKICAgIHByaW50KCJUaW1lIEVsYXBzZWQ6IHs6ZH1tc3x7OmR9cyIuZm9ybWF0KHJvdW5kKHQgKiAxMDAwKSwgcm91bmQodCAqIDEpKSkKCgpwcmludCgiLS0tLS1TVEFSVEVELS0tLS0iKQoKZm9yIGkgaW4gcmFuZ2UoeCk6CiAgICBpICs9IDEKICAgIG51bWRpdiA9IG51bWJlciAvIGkKICAgIG51bWQgPSBzdHIobnVtZGl2KQogICAgbnVtYmQgPSBudW1kWy0xXQogICAgbnVtYmQgPSBpbnQobnVtYmQpCiAgICBpZiBudW1kaXYgPCBudW1iZXIgKiogKDEvMik6CiAgICAgICAgcHJpbnQoIi0tLS0tRklOSVNIRUQtLS0tLSIpCiAgICAgICAgc3RhbXAoKQogICAgICAgIHByaW50KCJSZXN1bHRzOiIsIGRpdnMpCiAgICAgICAgYnJlYWsKICAgIGlmIG51bWJkID09IDA6CiAgICAgICAgcHJpbnQoJ0RJVklTSUJMRSBCWScsIGludChudW1kaXYpLCAnKicsIGludChpKSkKICAgICAgICBkaXZzICs9IDEK"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import time
number = int(input("Number: "))

i = 1
divs = 0

x = int((number ** (1/2)) * 10)


start_time = time.time()


def stamp():
    t = time.time() - start_time
    print("Time Elapsed: {:d}ms|{:d}s".format(round(t * 1000), round(t * 1)))


print("-----STARTED-----")

for i in range(x):
    i += 1
    numdiv = number / i
    numd = str(numdiv)
    numbd = numd[-1]
    numbd = int(numbd)
    if numdiv < number ** (1/2):
        print("-----FINISHED-----")
        stamp()
        print("Results:", divs)
        break
    if numbd == 0:
        print('DIVISIBLE BY', int(numdiv), '*', int(i))
        divs += 1