Write function fun, the function function is to find less than or equal to Lim all prime numbers and put in the AA array, the function returns the number of prime numbers. The statements given in function fun are for reference only Ask how to do it

Write function fun, the function function is to find less than or equal to Lim all prime numbers and put in the AA array, the function returns the number of prime numbers. The statements given in function fun are for reference only Ask how to do it

int fun(int lim,int aa[100])
{
int i,k,j=0,m=0;
for(k=2;k