Python Forum
3rd problem from project Euler
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3rd problem from project Euler
#4
If I casually observe it then it seems too brute-force approach.

As far as I understand one don't need to know all primes in range. One need to go up on only int(600851475142 / 2). Over that there can't be suitable factors. It seems to me, that it's not effective to calculate all primes in range and then try to find which are dividers. There is no point finding and checking primes which are large than half of range.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
3rd problem from project Euler - by Richard_SS - Jun-05-2019, 09:57 AM
RE: 3rd problem from project Euler - by DeaD_EyE - Jun-05-2019, 10:06 AM
RE: 3rd problem from project Euler - by Richard_SS - Jun-05-2019, 10:51 AM
RE: 3rd problem from project Euler - by perfringo - Jun-05-2019, 10:56 AM
RE: 3rd problem from project Euler - by Richard_SS - Jun-05-2019, 12:13 PM
RE: 3rd problem from project Euler - by heiner55 - Jun-05-2019, 01:55 PM
RE: 3rd problem from project Euler - by DeaD_EyE - Jun-05-2019, 02:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  dynamic variable name declaration in OOP style project problem jacksfrustration 3 846 Oct-22-2023, 10:05 PM
Last Post: deanhystad
  Problem with importing python-telegram library into the project gandonio 1 1,619 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Calculate the Euler Number with more decimal places Pedroski55 10 4,584 Oct-31-2021, 04:45 AM
Last Post: Pedroski55
  IndexError in Project Euler attempt CRISPRmetoopls 3 2,346 Aug-10-2020, 10:00 AM
Last Post: perfringo
  graphing euler method rondo 1 2,526 May-03-2019, 01:03 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020