#Loops
primes = [2,3,5,7]

#for loop
for prime in primes:
    print(prime, end=' ')

print()

#while loop
counter = 0
while counter < len(primes):
    print(primes[counter], end=' ')
    counter += 1;
else:
    print("\nAll list elements printed")
