Not able to get why loop is not running

import java.util.Scanner;
import java.math.BigInteger;
public class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int t=sc.nextInt();
while(t!=0)
{
int a=sc.nextInt();
int b=sc.nextInt();
BigInteger c=new BigInteger(β€œ1”);
for(int i=2;i<=a;i++)
{
c=c.multiply(BigInteger.valueOf(i));
}
int d=0;
BigInteger e=new BigInteger(β€œ0”);
while((c.mod(BigInteger.valueOf(b))).compareTo(e)==0)
{
c=c.divide(BigInteger.valueOf(b));
b=b*b;
//System.out.println(b);
//c=c.divide(BigInteger.value of(b));
d++;
}

  System.out.println(d);
  t--;
	}
}

}

@goyal431
I see you have resolved your doubt
Great work
If you don’t need any other help please close this doubt

not able to do it by this method . so please tell what is error in this solution

@goyal431
Then please send your code on CB IDE

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.