bool IsPrime( int arr[], int size)

{

bool prime = true;

for( int i = 0; i < size; i++ )

{

for(int j = 2; j < arr[i]-1; j++)

{

if((arr[i] % j ) == 0 )

prime = false;

break;

}

if (prime)

return false;

}

}

void PrintPrime( int arr[], int size)

{

for ( int i = 0 ; i < size; i++ )

if ( IsPrime (arr,size) == false )

{

cout<<arr[i];

}

}