Help me in solving CFPRIME problem

My issue

I am getting runtime error

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes 
		        // your code goes here
		Scanner scn = new Scanner(System.in);
		int T = scn.nextInt();

		long digitSum = 0;
		while(T>0){
	
			int numbers = scn.nextInt();
			digitSum = 0;
			while(numbers>0){
			long  curr = scn.nextInt();
			//Digit count
			long count = 0;
			if(curr==0){
				count = 1;
			}
			while(curr>0){
				count++;
				curr/=10;
			}
			
			//update digitSum
			digitSum+=count;
			numbers--;
			}
			
		//Check if digitSum is prime or not
			
			long div = 0;
			for(long i=2;i<digitSum;i++){
				if(digitSum>0 && digitSum % i==0){
					div++;
				}
			}
			
			if(div==0 && digitSum>0){
				System.out.println("Yes");
			}else{
				System.out.println("No");
			}
			
			T--;
		}
		
	}
}

Problem Link: CFPRIME Problem - CodeChef