Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Good Project?

  1. #11
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    Re: Good Project?

    Quote Originally Posted by WingedPanther View Post
    Have you tried any of the problems at Project Euler ?
    Never knew about this site! Lovely gentle problems in there.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Join Date
    Jul 2009
    Posts
    7
    Rep Power
    0

    Re: Good Project?

    Hey, I'm on Euler #3. I programmed the whole solution correctly, it displays prime factors of numbers accurately. The given number: 600851475143, however, is too big for c++ long int to handle. Any suggestions on what I should do?

  4. #13
    Join Date
    Jul 2009
    Posts
    7
    Rep Power
    0

    Re: Good Project?

    Btw 4x AdWord C-C-Combo

  5. #14
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    Re: Good Project?

    Quote Originally Posted by Chain Breaker View Post
    Hey, I'm on Euler #3. I programmed the whole solution correctly, it displays prime factors of numbers accurately. The given number: 600851475143, however, is too big for c++ long int to handle. Any suggestions on what I should do?
    You might need to have two long int variables, for instance, with a long int holding the most significant bits. When there is overflow you will need to 'bit shift' the calculation to retain those bit and store them in the most significant long int.

    Google 'bit shifting' if you are unclear.

  6. #15
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: Good Project?

    I use the GNU Multi-Precision library for a lot of those problems.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Really good project worth lots of money that needs to be done
    By babiesgame in forum Services for Buy/Sell/Trade
    Replies: 2
    Last Post: 11-01-2011, 02:22 PM
  2. Do you need to be good at math to be a good programmer?
    By Visionist in forum General Programming
    Replies: 8
    Last Post: 07-11-2011, 01:07 PM
  3. Any Good Project IDEA.????
    By L0s3r™ in forum C and C++
    Replies: 6
    Last Post: 03-25-2011, 08:12 AM
  4. Replies: 4
    Last Post: 07-09-2010, 01:25 AM
  5. Replies: 5
    Last Post: 07-14-2008, 10:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts