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
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Wednesday, 12-Feb-2025 23:41:20 JST nixCraft 🐧
-
Kailas Idavanmuzhi (saliaku@mastodon.social)'s status on Thursday, 13-Feb-2025 01:06:10 JST Kailas Idavanmuzhi
@nixCraft we do not have a practical algorithm for
factoring extremely large numbers -
Fubaroque (fubaroque@mastodon.social)'s status on Thursday, 13-Feb-2025 02:19:53 JST Fubaroque
@nixCraft All prime numbers? I think I spotted a bug in that Python script. 🥴 🥳
-