Skip to content

Instantly share code, notes, and snippets.

@larrasket
Created November 16, 2022 23:46
Show Gist options
  • Save larrasket/572c331734601e9e2afc8f3fd2429c3c to your computer and use it in GitHub Desktop.
Save larrasket/572c331734601e9e2afc8f3fd2429c3c to your computer and use it in GitHub Desktop.
Basic C program to fuck up your CPU. Use it to test your fans
#include <stdio.h>
int main(){
int count=0,found=0;
int a=2,current=2;
while(found<100000){
while(a<current)
{
if(current%a==0){
count=1;
}
a++;
}
if(count==0){
printf("%d\n",current);
found++;
}
current++;
a=2;
count=0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment