even if I reply one year later, I have to say that it depends on the computer architecture the compiler runs on, and not from the compiler itselfThat depends entirely on the compiler used. In my environment sizeof(long) is 4 bytes. You should use a long long if you want a guaranteed size of at least 8.
Didactic Feedback Cipher Long 3
- dangermouse
- Posts: 89
- Joined: Sun Jun 05, 2011 8:14 pm
- Location: deep space computing AG
- Contact:
if you are using Python, you can probably solve the challenge straight away. But in my case I was using Freepascal, and the problem was the multiplication (not the modulo thing) which overflowed differently. This bignum library helped:
http://home.netsurf.de/wolfgang.ehrhardt/mp_intro.html
http://home.netsurf.de/wolfgang.ehrhardt/mp_intro.html
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
- dangermouse
- Posts: 89
- Joined: Sun Jun 05, 2011 8:14 pm
- Location: deep space computing AG
- Contact:
The length of the string
Encoded string is 220 symbols length = 110 bytes, not divisible by 4. Where did last 2 bytes (b40e) come?