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

deleted 22 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3 , 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of digits.

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3 , 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of digits.

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of digits.

deleted 10 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of character digits.

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of character digits.

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of digits.

added 87 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of character digits.

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Python 3, (削除) 80 (削除ここまで) \$\cdots\$ (削除) 52 (削除ここまで) 53 bytes

Saved (削除) a (削除ここまで) 2 bytes thanks to Jitse!!!
Saved (削除) 7 (削除ここまで) 6 bytes thanks to Surculose Sputum!!!
Added a byte to fix bugs kindly point out by Jitse and Surculose Sputum.

Python 3, 53 bytes

lambda n:[c for c,d in zip(str(n)*n,f'{n:b}')if'0'<d]

Try it online!

Returns the \$n^{\text{th}}\$ number in the sequence as a list of character digits.

added 227 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 113 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 2 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 8 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 135 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 89 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
added 89 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading

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