Largest Prime Factor of 600851475143

  • Thread starter Arman777
  • Start date
  • Tags
    Prime
In summary: I ll try again later on and If I still can't solve I ll post it.In summary, the largest prime factor of 600851475143 is 11.
  • #36
scottdave said:
.
I'm on my phone and I did the 1st one on my phone using Google Sheets while my kid is at swim practice .

scottdave said:
I'm taking an online Python right now, so I think the extra practice will be good. But often you can use other tools.

Btw, if you have an iPhone and/or iPad, I'd strongly recommend getting Pythonista. You can run Python scripts with any of the standard module imports (plus numpy if you want) and it runs great on both. I don't think its available on Android, unfortunately.

A few years ago, I would spend a lot of time on iPhone or iPad coding via Pythonista while waiting for train or bus (and sometimes while riding the train too depending on crowding). Getting an extra 20 - 40 mins in every day during waiting time really adds up in terms of scaling the learning curve.
- - - -
High level: my general approach is scribble something down with pen and paper first, then straight to Python. I don't use Pythonista much these days but I have fond memories.
 
  • Like
Likes scottdave
Physics news on Phys.org
  • #37
Arman777 said:
I come to the 9th problem ( I solved the earlier ones as well) and I'll try to do more and more, Its really great indeed.

Well, I guess that's a good approach, the interesting thing is 4th, 5th or 6th problems are much easier than the 3rd one somehow (at least for me).
7th took some time to solve but I manage to do it.
8th is really nice :)
I haven't gone exactly in order. I'll work on one for a little while, then move on to another if I feel I'm stuck, then come back to revisit. These are the ones that I've solved so far: 1 thru 3, 5 thru 11, 13, 16, 19, 20, 22, 26, and 29
 
  • #38
scottdave said:
I haven't gone exactly in order. I'll work on one for a little while, then move on to another if I feel I'm stuck, then come back to revisit. These are the ones that I've solved so far: 1 thru 3, 5 thru 11, 13, 16, 19, 20, 22, 26, and 29
Thars great :) Sure you can
 
  • #40
Fred Wright said:
I haven't seen any problem where those are necessary. I found a 450-line version of the quadratic sieve online.
Implementing that by yourself is probably harder than any projecteuler problem.
Pollards_rho_algorithm is simple enough, if you think you need it.

What is useful many problems is generating a list of primes with https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
You can easily go up to 10^7 in python in a second or so. You could also store the smallest factor of each number in the sieve. This will get you instantaneous factoring.
 

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
32
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
3
Replies
80
Views
8K
  • Programming and Computer Science
Replies
22
Views
775
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
33
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
22
Views
2K
  • Engineering and Comp Sci Homework Help
2
Replies
37
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
829
Back
Top