def Q(p):
    A = p
    while A > 2:
        A -= 1
        if p % A == 0:
            break
    else:
        return True
    return False
print(Q(59))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: