satalker34



<script>

for(i=1;i<=10;i++)
{
var asal=true;
for(j=2;j<=i-1;j++)
{
if (i%j==0)
var asal=false;
}
if (asal){



for (var k = 1; k <= i; k++)

{

document.write(i + " ");

}

document.write("
");

}
}
</script>