1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
my $fr=219;
my @wp;
while ($fr <= 10000)
{
my $i=0;my $m=$fr-1;
for (1..$m)
{
$i+= $_ unless ($fr % $_) ;
}
my $k=0;$m=$i-1;
for (1..$m)
{
$k+= $_ unless ($i % $_) ;
}
if ($k==$fr)
{
push @wp, [$fr,$i];
print "*";
}
$fr++;
}
print "\n";
for (@wp)
{
print "@$_\n";
}
print "\n";
2011-05-12T21:55:40 topegsetze local $|=1