$a = 10;
function zjt($a) {
global $a;
$ i ++) // The number of rows that control output {
for ($ j = 1; $ j & lt; = $ a -$ i; $ j ++) // Control the number of spaces of each line {
echo "& nbsp";;
echo "* "; echo " }
20;
function dzjt($a) a;
// Control the number of spaces in each line of output
* Number
";}} H echo" & lt; br & gt; ";
}}
dzjt ($ a);*/// call the djzt () function
echo '1 ~ 100 prime:';
for($i = 2;$i <= 100;$i++)
($j = 2;$j < $i;$j++)
//$a=0, can be divided by other numbers
echo $i." " ;
}
}
echo '1 Sum of prime numbers ~100: '
$sum = 0;
for($i = 2;$i <= 100;$i++)
{
$a = 1;
for($j = 2;$ j < $i;$j++)
break; $sum = $sum + $i;
$sum