Skip to main content
-3 bytes
Source Link
Jo King
  • 47.5k
  • 5
  • 125
  • 186

MathGolf, 1616 13 bytes

♫rÇ♫♪↨Ç{▒h3≤\ε*ìΣ9=┌▒ε*\Σ8=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as wellTry it online!

Explanation:

                Range from 10000
 r   ♫♪              Range from 01000 to 999910000
   Ç{               Filter out by
    ▒h               The length of the string
      3≤               is less than or equal to 3
        \ε* ▒ε*         The product of all digits is not 0
           Σ9=┌ Σ8=┌     The digit sum of the digitsloop index (0 based) is not equal to 98

MathGolf, 16 bytes

♫rÇ{▒h3≤\ε*ìΣ9=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as well

Explanation:

                  10000
 r                 Range from 0 to 9999
  Ç{               Filter out by
    ▒h               The length of the string
      3≤               is less than or equal to 3
        \ε*          The product of all digits is not 0
           Σ9=┌      The sum of the digits is not equal to 9

MathGolf, 16 13 bytes

♫♪↨Ç{▒ε*\Σ8=┌

Try it online!

Explanation:

                Range from 
♫♪               1000 to 10000
   Ç{            Filter out by
     ▒ε*         The product of all digits is not 0
        Σ8=┌     The digit sum of the loop index (0 based) is not equal to 8
added explanation
Source Link
Jo King
  • 47.5k
  • 5
  • 125
  • 186

MathGolf, 16 bytes

♫rÇ{▒h3≤\ε*ìΣ9=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as well

Explanation:

♫                  10000
 r                 Range from 0 to 9999
  Ç{               Filter out by
    ▒h               The length of the string
      3≤               is less than or equal to 3
        \ε*          The product of all digits is not 0
           Σ9=┌      The sum of the digits is not equal to 9

MathGolf, 16 bytes

♫rÇ{▒h3≤\ε*ìΣ9=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as well

MathGolf, 16 bytes

♫rÇ{▒h3≤\ε*ìΣ9=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as well

Explanation:

♫                  10000
 r                 Range from 0 to 9999
  Ç{               Filter out by
    ▒h               The length of the string
      3≤               is less than or equal to 3
        \ε*          The product of all digits is not 0
           Σ9=┌      The sum of the digits is not equal to 9
Source Link
Jo King
  • 47.5k
  • 5
  • 125
  • 186

MathGolf, 16 bytes

♫rÇ{▒h3≤\ε*ìΣ9=┌

Try it online!

Unfortunately, there's no range from x to y, so we have to waste bytes on checking the length of the digit as well