The discussion focuses on a Fortran program designed to calculate the factorial of a number. Users noted that when inputting large values for n, the program produces incorrect results due to integer overflow, as the factorial grows rapidly and exceeds the maximum allowable integer size. To address this issue, it is suggested to limit input values of n to avoid exceeding storage limits. Alternative implementations using Fortran90 intrinsic functions like "selected_int_kind" allow for larger integers, enabling calculations for factorials beyond 20!. Additionally, a recursive function approach is presented, which can handle larger values more effectively. For even larger numbers, using double or extended real types is recommended, as they can accommodate calculations up to factorials of 4930.