Challenging Lover

Greetings to all of you. You must have heard about our star programmer Rafat bhai. One day he went on a date with his girlfriend and he was discussing his recent IUPC contest details.


This is a companion discussion topic for the original entry at https://toph.co/p/challenging-lover
#include <stdio.h>
int main()
{
    unsigned long long int test,i,j,k,arr[10000],sum,div,count;
    sum = count =0;
    scanf("%llu",&test);
    for(i=0;i<test;i++)
    {
        scanf("%llu",&arr[i]);
    }
    for(i=0;i<test;i++)
    {
        for(j=1;j<=arr[i];j++)
        {
            if(arr[i]%j==0)
            {

                sum = sum +j;

            }
        }
        for(k=3;k<sum;k++)
        {
            if(sum%k==0)
            {
                count ++;
            }
        }
        if(count!=0)
        {
            printf("No");
        }
        else
        {
            printf("Yes");
        }
        sum = 0;
        count = 0;

        printf("\n");

    }
    return 0;

}

Bhaiya,Why is this showing wrong answer in case 2??
@hjr265 @touhidur