about mpz_siezinbase function

Hwang soon chan gegul0bug0reporting at gmail.com
Mon Mar 18 05:20:22 CET 2013


i was solving problem => http://projecteuler.net/problem=57

to find answer, i was compare mpz_sizeinbase

but this return-value is not correct. : (

so, i have choose to compare log10( mpz_value ) instead of that way

program result ->
153    147
MP_VERSION : 5.1.1
CC : gcc -std=gnu99    -m32 -O2 -pedantic -fomit-frame-pointer
-mtune=amdfam10 -march=amdfam10

and i add source code

thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Square_root_convergents.c
Type: text/x-csrc
Size: 1381 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20130318/1265b49d/attachment.bin>


More information about the gmp-bugs mailing list