I think tightest lower bound is Ω(1) .
if you input is say 2 or 3 then it will i<=sqrt(n) become false and exit . and its worst case O(n^0.5)
this prog will be more efficient if there is break statement in the if part .
int isprime(int n )
{
for(int i=2;i<=sqrt(n) ; i++)
{
if(n%i==0)
{
not prime
break ;
}
}