Driver Code
let a = [ [ 1 , 2 , 3 , 4 , 2 ] , [ 0 , 1 , 2 , 3 , 34 ] , [ 0 , 34 , 21 , 12 , 12 ] , [ 1 , 2 , 3 , 6 , 6 ] ] ; let sum = takeSum ( a ) ; if ( isPrime ( sum ) ) document . write ( " " ) ; else document . write ( " " ) ;