Traditional Culture Encyclopedia - Traditional festivals - vf programming question to find the prime numbers directly between 100 and 200, preferably with a traditional flowchart.

vf programming question to find the prime numbers directly between 100 and 200, preferably with a traditional flowchart.

clear

"The prime numbers between 100 and 200 are:"

for i=100 to 200

x=0

for j=2 to i-1

if i/j=int(i/j)

x=1

endif

endfor

if x=0

?alltrim(str(i))+""

endif

endfor