CC Zone - Chip's Challenge Forum
Double the Last Number - Printable Version

+- CC Zone - Chip's Challenge Forum (https://forum.bitbusters.club)
+-- Forum: Non-Chip's Challenge (https://forum.bitbusters.club/forum-6.html)
+--- Forum: Games and Trivia (https://forum.bitbusters.club/forum-23.html)
+--- Thread: Double the Last Number (/thread-2230.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Double the Last Number - Gavin - 04-Oct-2018

2^159 = 730750818665451459101842416358141509827966271488


Double the Last Number - Gavin - 29-Oct-2018

1,461,501,637,330,902,918,203,684,832,716,283,019,655,932,542,976


Double the Last Number - Gavin - 01-Nov-2018

Quote:On 4/5/2012 at 11:26 PM, Flareon350 said:

2 (I remember this game and your fact about insanely huge numbers will come VERY soon is true! But it'll be in about 15 posts or so)

1,461,501,637,330,902,918,203,684,832,716,283,019,655,932,542,976 times what he said


Double the Last Number - H2O - 01-Nov-2018

2707685248164858261307045101702230179137145581421695874189921465443966120903931272499975005961073806735733604454495675614232576

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

463168356949264781694283940034751631413079938662562256157830336031652518559744



Double the Last Number - Gavin - 02-Nov-2018

What do you use to calculate numbers this large out of interest? I'm using Python


Double the Last Number - H2O - 02-Nov-2018

Most of the time, Haskell, but pretty much everything will do Sunglasses


GHCi:

> 2^163

11692013098647223345629478661730264157247460343808

tclsh:

% expr {2**163}

11692013098647223345629478661730264157247460343808

bc:

2^163

11692013098647223345629478661730264157247460343808

C:

Code:
#include <stdio.h>
#include <stdlib.h>
#include <gmp.h>

int main(int argc, char **argv){
  if(argc!=2){
    fprintf(stderr, "%s int\n", argv[0]);
    return EXIT_FAILURE;}
  unsigned long int e = strtoul(argv[1], NULL, 10);

  mpz_t r;
  mpz_init(r);
  mpz_ui_pow_ui(r,2ul,e);
  gmp_printf("%Zd\n",r);

  return EXIT_SUCCESS;}

./prog 163

11692013098647223345629478661730264157247460343808


Double the Last Number - budugoo - 14-Aug-2019

10000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000

There are 10 kinds of people in the world: those who know binary, and those who don't.