Skip to main content
deleted 255 characters in body
Source Link
Erik the Outgolfer
  • 40.8k
  • 5
  • 46
  • 125

05AB1E, 1514 bytes

θ¹¨S3X‚7∍*Oθ¹¨3X‚7∍*O(T%Q 

Try it online!Try it online!

Here is a version that handles the absence ofNeeds leading 0s as well (21 bytes):

¾7×ìR8£ćsS3X‚7∍*O(T%Q 

Try it online!, takes list of digits.

05AB1E, 15 bytes

θ¹¨S3X‚7∍*O(T%Q 

Try it online!

Here is a version that handles the absence of leading 0s as well (21 bytes):

¾7×ìR8£ćsS3X‚7∍*O(T%Q 

Try it online!

05AB1E, 14 bytes

θ¹¨3X‚7∍*O(T%Q 

Try it online!

Needs leading 0s, takes list of digits.

added 278 characters in body
Source Link
Erik the Outgolfer
  • 40.8k
  • 5
  • 46
  • 125

05AB1E, 15 bytes

θ¹¨S3X‚7∍*O(T%Q 

Try it online!

Here is a version that handles the absence of leading 0s as well (21 bytes):

¾7×ìR8£ćsS3X‚7∍*O(T%Q 

Try it online!

05AB1E, 15 bytes

θ¹¨S3X‚7∍*O(T%Q 

Try it online!

05AB1E, 15 bytes

θ¹¨S3X‚7∍*O(T%Q 

Try it online!

Here is a version that handles the absence of leading 0s as well (21 bytes):

¾7×ìR8£ćsS3X‚7∍*O(T%Q 

Try it online!

Source Link
Erik the Outgolfer
  • 40.8k
  • 5
  • 46
  • 125

05AB1E, 15 bytes

θ¹¨S3X‚7∍*O(T%Q 

Try it online!