<?php $n = 10007;echo ceil(log10(sqrt(2 * M_PI * $n)) + log10($n / M_E) * $n);
Standard input is empty
35688
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!