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

Commonmark migration
Source Link

#05AB1E , 14 bytes

05AB1E , 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Explanation:

[ ] # Infinite loop...
 N # Get the iteration value
 Ø # Get the nth prime
 J # Join the stack
 D # Duplicate this value
 1å# # If the input is in this string, break out of the loop
 1.O # Overlap function (due to a bug, I couldn't use the index command)
 ð¢ # Count spaces and implicitly print

Uses the CP-1252 encoding. Try it online!.

#05AB1E , 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Explanation:

[ ] # Infinite loop...
 N # Get the iteration value
 Ø # Get the nth prime
 J # Join the stack
 D # Duplicate this value
 1å# # If the input is in this string, break out of the loop
 1.O # Overlap function (due to a bug, I couldn't use the index command)
 ð¢ # Count spaces and implicitly print

Uses the CP-1252 encoding. Try it online!.

05AB1E , 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Explanation:

[ ] # Infinite loop...
 N # Get the iteration value
 Ø # Get the nth prime
 J # Join the stack
 D # Duplicate this value
 1å# # If the input is in this string, break out of the loop
 1.O # Overlap function (due to a bug, I couldn't use the index command)
 ð¢ # Count spaces and implicitly print

Uses the CP-1252 encoding. Try it online!.

added 459 characters in body
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

#05AB1E, 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Explanation:

[ ] # Infinite loop...
 N # Get the iteration value
 Ø # Get the nth prime
 J # Join the stack
 D # Duplicate this value
 1å# # If the input is in this string, break out of the loop
 1.O # Overlap function (due to a bug, I couldn't use the index command)
 ð¢ # Count spaces and implicitly print

Uses the CP-1252 encoding. Try it online!.

#05AB1E, 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Uses the CP-1252 encoding. Try it online!.

#05AB1E, 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Explanation:

[ ] # Infinite loop...
 N # Get the iteration value
 Ø # Get the nth prime
 J # Join the stack
 D # Duplicate this value
 1å# # If the input is in this string, break out of the loop
 1.O # Overlap function (due to a bug, I couldn't use the index command)
 ð¢ # Count spaces and implicitly print

Uses the CP-1252 encoding. Try it online!.

added 27 characters in body
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

#05AB1E, 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Uses the CP-1252 encoding. Try it online!.

#05AB1E, 14 bytes

Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Uses the CP-1252 encoding. Try it online!.

#05AB1E, 14 bytes

Uses 0-indexed output. Prime functions in osabie are very inefficient. Code:

[NØJD1å#]1.Oð¢

Uses the CP-1252 encoding. Try it online!.

Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248
Loading

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