Ok so I need to find the smallest integer whose factorial is greater than 2000

current code:

public class FactorialInt {

public static void main (String args[]){

int value = 7, factorial = 1, temp= value;

while(temp > 0){

factorial *=temp;

temp--;

}

System.out.println("The factorial of " + value + " is " + factorial + ".");

}}

not sure how to change this code to solve problem. I can find the factorial for a int that i set but i how do i have it find the int that meets the requirements?