initial commit

This commit is contained in:
2025-08-03 20:16:55 -07:00
commit 87a130499d
89 changed files with 10241 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
$arr = New-Object bool[] 500000
$arr[0] = $arr[1] = $TRUE
$count = 0
for ($i=2; $i -lt $arr.Length; $i++)
{
if ($arr[$i] -eq $TRUE)
{
continue
}
for ($j=$i*2; $j -lt $arr.Length; $j += $i)
{
$arr[$j] = $TRUE
}
$count ++
write-host "$i is $count"
if ($count -eq 10001)
{
break
}
}