Question: Loops and Conditional Execution Exercise

This is the simple code that I came up with (after some frustration) to solve the problem of separating the sequence of positive integers from 1 to 20 into one sequence of primes and one sequence of nonprimes, and eventually displaying those sequences. I'm just curious to see what other ways this same question could have been solved. > > This post generated using the online HTML conversion tool Download the original worksheet
Please Wait...