1.為何要執行到A=B或A/B的餘數=0 2.為何A=B就是質數??? A>=B 質數只有1和本身的因數 A/ 2.3.4.5.6...直到B=A 如果在還沒有直到B=A時,A/B就可以整除 A就是合數【有一個大於1、小於A的因數】 若有小於B=A的整數,可以整除A 表示A有其他因數【除了1和本身】 This a very easy program to make. Just click the green and away you go. A long list of square numbers will appear. However, there are some issues with the program, when you get up to certain number you will start to get strange readings eg. infinity. This is just a problem with scratch. You may need to use turbo mode.
THANKS