A Perl programmer is asked to write a script to find all the prime numbers. They finish in 5 minutes. "How did you do it so fast?" asks their coworker. "I just used the is_prime function," they reply. "But Perl doesn't have an is_prime function!" yells back the coworker. The Perl programmer laughs. "I know. I wrote it in three lines."
Conversation
Notices
-
Embed this notice
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Wednesday, 12-Feb-2025 23:51:24 JST nixCraft 🐧
- Doughnut Lollipop 【記録係】:blobfoxgooglymlem: likes this.
-
Embed this notice
Michal Špondr (michal@spondr.cz)'s status on Thursday, 13-Feb-2025 00:08:17 JST Michal Špondr
@nixCraft And moreover, as a regular expression.
clacke likes this.