What is the Arabian Nights factorial, the number x such that x! has 1001 digits? How about the prime x such that x! has exactly 1001 zeroes on the tail end. (Bonus question, what is the 'rightmost' non-zero digit in x!?)

What is the Arabian Nights factorial, the number x such that x! has 1001 digits? How about the prime x such that x! has exactly 1001 zeroes on the tail end. (Bonus question, what is the 'rightmost' non-zero digit in x!?)

lib/DbaDatabase.php:154: Warning: dba_optimize() [<a href='function.dba-optimize'>function.dba-optimize</a>]: You cannot perform a modification to a database without proper access

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access