Alternating between squares and primes

+15
PY
py
OUTPUT