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 Answer

added 283 characters in body
Source Link
Jörg Hülsermann
  • 13.4k
  • 3
  • 16
  • 36

PHP, 76 bytes

for(;$i++<$argn**(1/3);)for($n=1;$n<$i;)$n++**3+$i**3!=$argn?:$c++;echo$c>1;

Try it online!

Search till 400000 Try it online!

PHP, 76 bytes

for(;$i++<$argn**(1/3);)for($n=1;$n<$i;)$n++**3+$i**3!=$argn?:$c++;echo$c>1;

Try it online!

PHP, 76 bytes

for(;$i++<$argn**(1/3);)for($n=1;$n<$i;)$n++**3+$i**3!=$argn?:$c++;echo$c>1;

Try it online!

Search till 400000 Try it online!

deleted 35 characters in body
Source Link
Jörg Hülsermann
  • 13.4k
  • 3
  • 16
  • 36

PHP, 9576 bytes

foreach($r=rangefor(1,$argn**;$i++<$argn**(1/3))as$v;)foreachfor($r as$w$n=1;$n<$i;)$c+=$w**3+$v**3==$argn&&$v<$w$n++**3+$i**3!=$argn?:0;echo$c>1;$c++;echo$c>1;

Try it online! Try it online!

PHP, 95 bytes

foreach($r=range(1,$argn**(1/3))as$v)foreach($r as$w)$c+=$w**3+$v**3==$argn&&$v<$w?:0;echo$c>1;

Try it online!

PHP, 76 bytes

for(;$i++<$argn**(1/3);)for($n=1;$n<$i;)$n++**3+$i**3!=$argn?:$c++;echo$c>1;

Try it online!

Source Link
Jörg Hülsermann
  • 13.4k
  • 3
  • 16
  • 36

PHP, 95 bytes

foreach($r=range(1,$argn**(1/3))as$v)foreach($r as$w)$c+=$w**3+$v**3==$argn&&$v<$w?:0;echo$c>1;

Try it online!

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