function list_prime ($min, $max, $return_string
{
$count = $min
$numbert = 2;
$return = array();
while ($count < $max ) {
$div_count=0;
for ( $i=1;$i<=$number$i++)
if (($number$i)==0)
$div_count++;
if ($div_count<3) {
$return[] = $number
$count += 1;
}
$number += 1;
}
unset$return[0]);
if$return_string
$return = implode", ", $return);
return $return
}