For C, something like in the comments:
def asallar(limit): \\ void asallar(int limit, int* asal_listesi){
limitn = limit+1 \\ int limitn =limit+1;
asal_degil = [False] * limitn \\ int *asal_degil = malloc(...)
asal_listesi = [] \\ vector asal_listesi;
for i in range(2, limitn): \\ for(int i=2; i<limitn;> if asal_degil[i]: \\ if(asal_degil[i])
continue \\ continue;
for f in xrange(i*2, limitn, i): \\ etc
asal_degil[f] = True
asal_listesi.append(i)
return asal_listesi