Hello, i want to get a new idea from a key to get a complex number
For ex) there's numbers (1~10)
i want to get numbers except complex
so i wanna get numbers 4,6,8,9,10
i was trying to get
for(i in 1:10) {
+ check = 0
+ for(j in 1:i) {
+ if(i%%j==0) {
+ check = check + 1 }
+ if(check<2) {
+ break()
+ }
+ }
+ if(check>2) {
+ print(i)
+ }
+ }
But answer was 10. i don't know what happens... can you tell me the right solution?
Thank you