Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Python

Visibility

unlisted

Author

legacy-anonymous

Created

2024-11-02T11:31:39.882346Z

Updated

2024-11-02T11:31:39.882346Z

#!/bin/env python3

a = [0] * 100
for i in range(100):
        j = i
        while j < 100:
                a[j] = 1 - a[j]
                j = j + i + 1
        print(i + 1)
        print(a)

r = []
for i in range(100):
        if a[i] > 0:
                r.append(i + 1)
print(r)
INFO