![]() |
|
|
#23 | |
|
Nov 2003
22·5·373 Posts |
Quote:
other work must be done as well. |
|
|
|
|
|
|
#24 |
|
∂2ω=0
Sep 2002
República de California
1163910 Posts |
|
|
|
|
|
|
#25 | |
|
Nov 2003
11101001001002 Posts |
Quote:
of log_2(n) in floating point just using the most significant limb. If log_2(n) is very close to floor(log_2(n)) one then switches to another method. I assume that n is multi-precision. (typical for this forum) |
|
|
|
|
|
|
#26 | |
|
Dec 2010
Monticello
5·359 Posts |
Quote:
|
|
|
|
|
|
|
#27 | |
|
May 2011
France
7·23 Posts |
Quote:
Not for me but the readers...(They can jointt you to say thaat I'm bad) You dont have read the code Code:
R:= √n I:=1; C:=0; repeat while n mod Prime[i]=0 do begin C:= C+1; PF[C]:= Prime[i]; // save thr factor n:- n div Prime[i]; // new value to factorize R:= √n; // new limit for searching end I:= I+1; until Prime[i]> R after I reduce n at each factor find and i compute the new limit ( perhaps it exist a faster way t compute the For the DIIV it's slow for you but not for me you need 100 cycles (docc Intel) me ONE so div,add,* is equal 1 cycle:it's calla RISC processor: you want that explain you why all calculators have RISC we can for example ask to someone to compute the product of X primes and we factorize it...> 1000 digits Or if you prefer we compute n with the number of factor random and tthe value of the prime factors The number will have many digits but it's not a problem for you Every one could see that I must return to school or yoo Do me aa favor continue to do not answer on my tropics :I don't have to sort the answwer Last fiddled with by JohnFullspeed on 2011-07-07 at 06:09 Reason: remove some typo errorsI see |
|
|
|
|
|
|
#28 | |
|
Jan 2008
France
10468 Posts |
Quote:
|
|
|
|
|
|
|
#29 |
|
May 2011
France
7·23 Posts |
I say thatthe division method was the speeder way to factorize
I get Fermat mmethod like answer Is't ttue the method is faster but IT SEEMS that we cannot use it in quadratic sieve because in a quadratic sieve we don't use all the primes but a base of prime But it's true the Fermat method is speeder than the method I indicate( and I still alive) Now I find the speeder method to detect a perfect square John |
|
|
|
|
|
#30 | |
|
Nov 2003
22·5·373 Posts |
Quote:
Yes, but my method avoids checking all of the other limbs. There could be a lot of them. The cost tradeoff is that computing a log (even just a single one) is relatively expensive. |
|
|
|
|
|
|
#31 |
|
Nov 2003
22·5·373 Posts |
|
|
|
|
|
|
#32 | |
|
Nov 2003
22×5×373 Posts |
Quote:
Sure. I'll do you this favor. But only in return for a favor on your part. Stop all of your posting until you can supply some evidence that you have studied some computational number theory. |
|
|
|
|
|
|
#33 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
72·131 Posts |
Quote:
I am reasonably confident that computing a log is more expensive than checking for one set bit. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| More Power!!!! | petrw1 | Teams | 10 | 2019-10-15 17:36 |
| TDP as power used? | CRGreathouse | Hardware | 9 | 2016-02-06 18:46 |
| How much power am I really using? | petrw1 | Lounge | 19 | 2013-12-13 13:00 |
| Power??? | JohnFullspeed | Programming | 5 | 2011-08-30 16:28 |
| IBM Power 6 | Unregistered | Information & Answers | 7 | 2008-08-30 14:36 |