Show sourcecode
The following files exists in this folder. Click to view.
cookie.php
hej.php
hemlig.php
index.php
login.php
logout.php
medelvarde.php
ovn_db1.php
ovn_gr1.php
ovn_gr2.php
ovn_gr3.php
ovn_gr3b.php
ovn_gr4.php
ovn_gr5.php
ovn_gr6.php
ovn_gr7.php
quiz.php
session.php
uppgift.php
ovn_gr7.php
24 lines ASCII Windows (CRLF)
<?php
$antal = 0;
$tal = 2;
while ($antal < 100) {
$primtal = true;
for ($delare = 2; $delare < $tal; $delare++) {
if ($tal % $delare == 0) {
$primtal = false;
break;
}
}
if ($primtal) {
echo $tal . "<br>";
$antal++;
}
$tal++;
}
?>