fork(1) download
  1. #!/usr/bin/perl
  2. my $n = 2;
  3. my $d = 10_000_000_000;
  4.  
  5. for (my $x = 1; $x <= 7830456; $x = $x+1) {
  6. $n = ( 2 * $n ) % $d ;
  7. }
  8.  
  9. $n *= 28433;
  10. $n += 1;
  11. $n %= $d;
  12.  
  13. print $n;
  14.  
Success #stdin #stdout 2.61s 6000KB
stdin
Standard input is empty
stdout
8739992577