Prime number program doesn't wprk

76 views
Skip to first unread message

Ndikho Sikrweqe

unread,
Nov 2, 2014, 7:15:25 AM11/2/14
to
I want to print all prime numbers from 1 to n. Please help me out. What is wrong in this code and how to fix it? Many thanks


Edit: corrupted image removed.   Please use the Insert Image control to the left of the Link icon above to add a jpg or png image.  Dragging images into this field does not work.

Taifun

unread,
Nov 2, 2014, 9:58:17 AM11/2/14
to mitappinv...@googlegroups.com

how to add a screenshot
Taifun


Ndikho Sikrweqe

unread,
Nov 3, 2014, 4:44:50 AM11/3/14
to mitappinv...@googlegroups.com
Please help, I want to print all prime numbers from 1 to n
primes.jpg

Taifun

unread,
Nov 3, 2014, 8:40:29 AM11/3/14
to mitappinv...@googlegroups.com
btw. it would help to provide a screenshot which is readable...
one thing is to remove the close screen block

but after a while your app will get unresponsive, see also

for the main loop try to use a Clock component instead 
Taifun

Abraham Getzler

unread,
Nov 3, 2014, 10:45:31 AM11/3/14
to mitappinv...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages