Python Beginners – calculate the maximum prime number less than 100

Time:2020-10-27
for n in range(100,1,-1):
    for i in range(2,n):
        if n%i==0:
            break
    else:
        print(n,end=' ')