![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Got a link to that?
|
|
|
|
|
|
#22 |
|
Newbie
Join Date: Apr 2005
Location: The Netherlands
Posts: 20
Rep Power: 0
![]() |
|
|
|
|
|
|
#23 |
|
Professional Programmer
Join Date: May 2005
Location: Woo - Boot Sector!
Posts: 294
Rep Power: 4
![]() |
Hey OOble: i've been to two lectures by him too. i probably should read the book, but the lectures were so interesting!!!
__________________
www.heldtogether.co.uk |
|
|
|
|
|
#24 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Thanks for the link, mate. I haven't even started the linked list bit, and it's already down to four seconds! There were two optimisations - I changed the double to an unsigned long long so I could use the modulus operator instead of relying on a function of math.h, and changed i <= sqrt(num) to (i * i) <= num, which is a lot faster.
|
|
|
|
|
|
#25 | |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|