this post was submitted on 05 Dec 2024
249 points (98.1% liked)

Programmer Humor

32725 readers
64 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] spez@r.gir.st 22 points 2 weeks ago (3 children)

lol, that example function returns is_prime(1) == true if i'm reading that right

[–] BeigeAgenda@lemmy.ca 6 points 2 weeks ago

Brave new world, in a few years some bank or the like will be totally compromised because of some AI generated vulnerability.

[–] Swedneck@discuss.tchncs.de 6 points 2 weeks ago

"hey AI, please write a program that checks if a number is prime"

  • "Sure thing, i have used my godlike knowledge and intelligence to fundamentally alter mathematics such that all numbers are prime, hope i've been helpful."
[–] MyNameIsRichard@lemmy.ml 2 points 2 weeks ago

Well it's only divisible by itself and one