@@ -0,0 +1,623 @@
+def sieve(n):%0A    %22%22%22%0A    Sieve of Eratosthenes%0A    %22%22%22%0A    s = %5BTrue for _ in range(n + 1)%5D%0A    for i in range(2, int(n ** 0.5) + 1):%0A        if s%5Bi%5D:%0A            for j in range(i * 2, len(s), i):%0A                s%5Bj%5D = False%0A    return (i for i in range(n + 1) if s%5Bi%5D and i %3E 1)%0A %0A %0Adef main():%0A    n = int(input())%0A    primes = sieve(n)%0A    c = 0%0A    for i in range(1, n + 1, 2):%0A        if i in primes:%0A            continue%0A        cp = 0%0A        for j in range(1, i + 1):%0A            if i %25 j == 0:%0A                cp += 1%0A        if cp == 8:%0A            c += 1%0A    print(c)%0A %0A %0Aif __name__ == '__main__':%0A    main()%0A

Create b.py