Code viewer for World: Pure Python demo (clone by...

# Clone by Will Krzastek of:
# "Pure Python demo" by Starter user
# https://ancientbrain.com/world.php?world=5971642361
# Please leave this clone trail here.



# Python code 

print ("<h1> First line of 'print' output </h1>")

print ("<p style='color:green'><b> Second line of 'print' output </b></p>") 
 

# --- generate prime numbers: -----------------------------------------------------
primes = [2]
num = 3

while len(primes) < 100:
    if all(num % p != 0 for p in primes):
        primes.append(num)
        print(num)
    num += 2

# print(*primes)    # print them all, separated by spaces 
# ----------------------------------------------------------------------------