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 258 characters in body
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

05AB1E, 4 bytes

Code

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online! or Check for all numbers between 1 and 9949 Check for all numbers between 1 and 9949.

Explanation

æ # Get the powerset of the number.
 p # Check for each element whether it is a prime.
 J # Join these numbers into one big number.
 Θ # Check whether this joined number is equal to 1.

05AB1E, 4 bytes

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online! or Check for all numbers between 1 and 9949.

05AB1E, 4 bytes

Code

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online! or Check for all numbers between 1 and 9949.

Explanation

æ # Get the powerset of the number.
 p # Check for each element whether it is a prime.
 J # Join these numbers into one big number.
 Θ # Check whether this joined number is equal to 1.
added 258 characters in body
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

05AB1E, 4 bytes

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online! or Check for all numbers between 1 and 9949 .

05AB1E, 4 bytes

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online!

05AB1E, 4 bytes

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online! or Check for all numbers between 1 and 9949 .

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

05AB1E, 4 bytes

Uses the 05AB1E-encoding. Checks whether the given number is a delicate prime or not.

æpJΘ

Try it online!

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