max long integer not printing?

Pages: 12
TheIdeasMan wrote:
Does that help you? Good to hear :+)

No, no, no. You're doing it wrong. You're supposed to post every one of those sentences in a separate post, to clutter the forum with nonsense, and artificially boost your post count to make it look as though your contribution is more significant than it really is. Haven't you learned anything from this forum?

;)
@MikeyBoy

LOL

What about this part?

@closed account 5a8Ym39o6 (300)

I thought I would generally divide his post count by 3......
Well played - I completely missed that!
Please note that closed account's code was just a copy of the OP's code with a "percent complete" meter running. It wasn't a new solution to the problem. He was just trying to demonstrate how slow the program ran.

As for the Sieve, that finds all primes from 2 to N, but Project Euler #3 isn't asking for that, it's just asking to find the largest prime factor of a single number.
For the specific case of the number 600851475143 it is possible to produce a fast solution (mine completed in under 20 microseconds, excluding i/o) without reference to prime numbers as such.

However, a more general solution to work with any number (including those which are themselves prime) then I think some use of prime numbers could be useful. My own solution would certainly be extremely slow in that case.
closed account (48T7M4Gy)
Largest prime factor
Problem 3
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?

https://projecteuler.net/problem=3
@kemort
https://projecteuler.net/problem=3
When I opened the link you provided, a message appeared :

"Oops! Page not found"

That is what my browser said.
closed account (48T7M4Gy)
@closed+many postnominals

Works on mine. But that doesn't help you much, so maybe this more general one? https://projecteuler.net/

If that fails use Google and go to PE archive tab
Topic archived. No new replies allowed.
Pages: 12