#tcl, 201
My still not golfed answer:
for {set i 2} {$i<$1000000} {incr i} {
set p 1
for {set j 2} {$j<$i} {incr j} {
if {[expr $i%$j] == 0} {
set p 0
break
}
}
if $p {puts $i}
}
#tcl, 201
My still not golfed answer:
for {set i 2} {$i<$1000000} {incr i} {
set p 1
for {set j 2} {$j<$i} {incr j} {
if {[expr $i%$j] == 0} {
set p 0
break
}
}
if $p {puts $i}
}