Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2

Bash + GNU utilities, 86 bytes

for((k=4;k<1ドル;k++,j=k-2)){ [ $(factor $k $j|wc -w) = 4 ]&&x=$x+1/$k+1/$j;};bc -l<<<0$x

Try it online!

Constructs a large arithmetic expression and then feeds it to bc -l to evaluate it.

AltStyle によって変換されたページ (->オリジナル) /