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

2 of 2
Commonmark migration

cQuents, 9 bytes

&#N_=N+.0

Try it online!

& is broken on TIO right now, so TIO link will not work, but it would time out anyway, as the only way to start at 2^53 is modifing the interpreter.

Explanation

 Implicit input n
& Output first n terms of the sequence
 # Only include an integer N in the sequence if:
 N N
 _= is not equal to 
 N+.0 N converted to float
Stephen
  • 14.2k
  • 3
  • 57
  • 118

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