Help In Problem

Revision en1, by TheSleepyDevil, 2024-04-15 02:08:13

You Have Number N initialy equal to 1 , and there is 2 operations : 1) 1 x : multiple n by , n=n*x 2) 2 x : check if n%(x!)=0 , n mod (factorial x) = 0

Query up to 1e5 , x up to 1e6

Any hint ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TheSleepyDevil 2024-04-15 02:08:13 217 Initial revision (published)