Java program to count number of ways we can express a factorial as sum of consecutive numbers
import java . util . * ; class GFG { static int MAX = 50002 ; static ArrayList < Integer > primes = new ArrayList < Integer > ( ) ;