Created
November 16, 2022 23:46
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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