#3 Largest Prime Factor

For questions about problems on the Project Euler web site. No spoilers. Please include the question number in the subject line of your post.

#3 Largest Prime Factor

Postby raspi » Mon Mar 09, 2015 6:39 pm

Below is my fifth edition of the program. I can't think of anything else that I can improve now...
600851475143 is just too large for me...
Looking for help now... Thanks!

Mekire: Snipped code for posterity.
Last edited by Mekire on Tue Mar 10, 2015 3:57 am, edited 2 times in total.
Reason: Added code tags. Locked.
raspi
 
Posts: 2
Joined: Sun Mar 08, 2015 4:33 am

Re: #3 Largest Prime Factor

Postby stranac » Mon Mar 09, 2015 6:52 pm

Hi, please read this to learn how to post code properly: viewtopic.php?f=10&t=145
I don't have time to take a good look at your code atm, but I might later.
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1790
Joined: Thu Feb 07, 2013 3:42 pm

Re: #3 Largest Prime Factor

Postby raspi » Tue Mar 10, 2015 2:39 am

stranac wrote:Hi, please read this to learn how to post code properly: http://python-forum.org/viewtopic.php?f=10&t=145
I don't have time to take a good look at your code atm, but I might later.

Actually I just figured out a faster solution, which took less than a second to find the answer. I'm supposed to delete my code but can't find the 'edit' button right now. Would you please help delete the code? Thanks!
raspi
 
Posts: 2
Joined: Sun Mar 08, 2015 4:33 am

Re: #3 Largest Prime Factor

Postby Mekire » Tue Mar 10, 2015 4:01 am

I've edited the code out of the OP.
If you have further questions about your current implementation feel free to continue the thread.
New Users, Read This
  • Use code tags when posting code.
  • Include any errors with your post (in code tags).
  • Describe your problem; not your chosen solution.
  • Make examples the minimum length to demonstrate your issue.
User avatar
Mekire
 
Posts: 1711
Joined: Thu Feb 07, 2013 11:33 pm
Location: Tucson, Arizona


Return to Project Euler

Who is online

Users browsing this forum: No registered users and 2 guests