|
 |
Warp <war### [at] tag povray org> writes:
> Neeum Zawan <fee### [at] fester com> wrote:
>> primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67,
71, 73, 79, 83, 89, 91, 97]
>> for prime in prime:
>> print prime
>
> Way to overcomplicate a simple problem. Why not simply:
>
> print 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 91, 97
Because I wanted one prime per line.
(Whew! Glad no one pointed out that my code doesn't work!)
Post a reply to this message
|
 |