Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Last active August 3, 2023 20:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save techthoughts2/d0db235e6cd96bded9533c69c83da687 to your computer and use it in GitHub Desktop.
Save techthoughts2/d0db235e6cd96bded9533c69c83da687 to your computer and use it in GitHub Desktop.
$NumberOfLogicalProcessors = Get-CimInstance win32_processor | Select-Object -ExpandProperty NumberOfLogicalProcessors
ForEach ($core in 1..$NumberOfLogicalProcessors) {
start-job -ScriptBlock {
$result = 1;
foreach ($loopnumber in 1..2147483647) {
$result = 1;
foreach ($loopnumber1 in 1..2147483647) {
$result = 1;
foreach ($number in 1..2147483647) {
$result = $result * $number
}
}
$result
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment