C (K&R) program that calculates PI number by measuring circle that is its code:
https://en.wikipedia.org/wiki/International_Obfuscated_C_Cod... Perl one-liner that checks if a number is prime:
perl -lne '(1x$_) =~ /^1?$|^(11+?)\1+$/ || print "$_ is prime"'
Comments (380) 116 threads
Show all comments
Showing thread 50 of 116
C (K&R) program that calculates PI number by measuring circle that is its code: https://en.wikipedia.org/wiki/International_Obfuscated_C_Cod...
Perl one-liner that checks if a number is prime: perl -lne '(1x$_) =~ /^1?$|^(11+?)\1+$/ || print "$_ is prime"'