Is this not at all stochastic, or do I just not know what stochastic means?
This but AI
deleted by creator
I’ve had managers who follow that exact algorithm.
Warning: unused variable
Just add it to the pile I guess
I’m confused, shouldn’t this be printing false no matter what the input is?
The test suite probably looks something like this:
int tests_passed=0; int tests_failed=0; for(int i=0;i<100000;i++){ printf("test no. %d: ", i); if(is_prime(i)==actually_is_prime(i)){ printf("passed\n"); tests_passed++; }else{ printf("failed\n"); tests_failed++; } } //...that’s the joke, since most numbers aren’t prime, this function is technically highly accurate despite being completely useless.
Removed by mod
Removed by mod
It approaches 100% accuracy
But when the input is all prime numbers then the accuracy is 0.
True

also btw icymi, this is a post about LLMs
You could simplify it even further by removing the int x parameter of the function…
So elegant! This is too valuable for GitHub, sell this directly to the Saudi government.
95.121% of the time it works everytime.
I am screenshoting this so it will be screenshot of a screenshot of a screenshot then post it somewhere else
ifunny
Not even adding some watermark? smh
But cryptography…










