function solution(nums) {
var answer = 0;
for (let i=0;i<nums.length-2;i++){
for (let j=i+1;j<nums.length-1;j++){
for (let m=j+1;m<nums.length;m++){
let number=nums[i]+nums[j]+nums[m];
let count=0;
for (let k=1;k<=number;k++){
if (number%k===0){
count+=1;
}
}
if (count===2){
answer+=1;
}
}
}}
return answer;
}