fork download
  1. <?php
  2.  
  3.  
  4. $base=pow(10,4);
  5. $c=fnc( 7, 7, $base );
  6. $c=fnc( $c, 7, $base );
  7. $c=fnc( $c, 7, $base );
  8.  
  9.  
  10. function fnc( $c=7, $loop=7, $base=10000 ) {
  11. $x=1;
  12. for( $n=0; $n<$loop; $n++ ) {
  13. $x *= $c;
  14. if($x>$base) $x %= $base; }
  15. return $x; }
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
int(2343)