![]() |
|
|
#12 | |
|
Aug 2006
3×1,993 Posts |
Quote:
This only slightly less common. Some languages like PARI/GP and Python have bignums built-in so you can't reasonably overflow, and many others like C and Java have libraries that can support them as needed. |
|
|
|
|
|
|
#13 | |
|
Jun 2017
1310 Posts |
Quote:
|
|
|
|
|
|
|
#14 | |
|
Jun 2017
13 Posts |
Quote:
Last fiddled with by manasi on 2017-06-29 at 10:14 |
|
|
|
|
|
|
#15 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
I am probably wrong on this, but... Isn't the use of fixed length variables a matter of the machine word length, i.e. hardware stuff, not software stuff?
In other words, the use of decimal, binary, hexadecimal or whatever else is bound to the physical representation of the bits inside the computer registers. This means that a "binary, unbound bit-length language" is something as theoretical as a Turing Machine... |
|
|
|
|
|
#16 | |
|
Jun 2017
13 Posts |
Quote:
Now, suppose I do not want to use Lucas Lehmer test but instead want to create endomorphisms that directly alter blocks of the binary sequence 2^10000019 -1 yielding a result with less operations. For instance, you could rule out division from {multiplication,division,subtraction} but only use {subtraction,multiplication}. There would be very large binary sequences. This is what I want to do to get results a different way. Oh! Last fiddled with by CRGreathouse on 2017-06-29 at 14:46 Reason: fix quote tag |
|
|
|
|
|
|
#17 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
32·5·107 Posts |
Quote:
|
|
|
|
|
|
|
#18 |
|
Aug 2006
3·1,993 Posts |
I don't know why you think it is possible to go faster than LL by working "directly"with binary. All existing programs work directly with binary.
Last fiddled with by CRGreathouse on 2017-06-29 at 14:46 |
|
|
|
|
|
#19 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
100101000001012 Posts |
Depends on what you call 'most'. Excel? calc.exe?
Quote:
Two Russian anecdotes come to mind: 1. "Can you play violin?" -- "I never tried but I think I can!". This was popular [I]long[/I] before the Kruger & Dunning 1999 paper. 2. "Can you play (using a)* violin?" -- "I can! ...But it is very inconvenient - the cards** slip and fall over. Cello is much better." ______________ *In Russian, "to play violin" is a phrase with a preposition. **And of course "play" in most minds means "play cards" |
|
|
|
|
|
|
#20 |
|
Jun 2017
D16 Posts |
I thought to use endomorphisms and work similar to modular arithmetic -
Start to compare size of two binary numbers minus zeroes at the end. Then just play with the blocks using endomorphisms. Different algorithm other than the two you mentioned. But then, as you say, perhaps machine specifies integer width.(hardware) So, I can not proceed on this line. |
|
|
|
|
|
#21 |
|
Jun 2017
13 Posts |
|
|
|
|
|
|
#22 | |
|
Jun 2017
13 Posts |
Quote:
Very true.(i) I would like to know more about endomorphisms acting on binary sequences. (ii) Are they more/less helpful in factoring? I googled but did not get suitable results. Last fiddled with by manasi on 2017-06-29 at 18:39 |
|
|
|
|