tag:blogger.com,1999:blog-1835289826116422734.post3347521746512631778..comments2023-10-29T07:11:47.125-07:00Comments on L♥ve is a Mutt: My First Geeky PostAizahttp://www.blogger.com/profile/02900320846839982533noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1835289826116422734.post-61827147265071833292010-10-14T01:11:26.959-07:002010-10-14T01:11:26.959-07:00ahhh. ano daw??? hahaha. i love numbers Miss C bec...ahhh. ano daw??? hahaha. i love numbers Miss C because i'm an accountant but not this kind, hehehe. i prefer the ones with a "$" sign in front but thanks for sharing.Gee of georyl.comhttp://www.blogger.com/profile/02348775343912810491noreply@blogger.comtag:blogger.com,1999:blog-1835289826116422734.post-42714042261598016192010-10-14T01:31:46.204-07:002010-10-14T01:31:46.204-07:00Lol. It's a program, Gee. Though I am an engin...Lol. It's a program, Gee. Though I am an engineer I love numbers with '$', too. Thanks for commenting! I changed my comment form. A friend suggested on doing this.Miss `Chievoushttp://www.blogger.com/profile/02900320846839982533noreply@blogger.comtag:blogger.com,1999:blog-1835289826116422734.post-35675286708824097592010-10-14T08:33:08.927-07:002010-10-14T08:33:08.927-07:00Nice work :-)There are a couple of changes that wo...Nice work :-)<br><br>There are a couple of changes that would make your program run even faster:<br><br>Start by testing division by 2 instead of 1. Everything divides by 1.<br><br>As above, plus stop counting zero reminders after you've found 2. By then you already know it's not prime.<br><br>Stop testing division at sqrt(number) instead of number. Stop counting remainders after you've found 1.<br><br>Sorry, I couldn't help myself :-Pretrocodehttp://retrocode.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-1835289826116422734.post-48390180226145678642010-10-18T06:32:50.919-07:002010-10-18T06:32:50.919-07:00I think 1 is a prime number. I would say it is a ...I think 1 is a prime number. I would say it is a good method just to count the number of times it can be divided with rem 0. One improvement is that if count = 3, straight away end the loop and go to the next number as there is no need to count anymore (unnecessary).nooksncorners.comhttp://www.nooksncorners.com/noreply@blogger.com