2 deleted 15 characters in body
source | link

MathGolf, 77 6 bytes

♀╒g♀╒Ç{2╧┌2╧

Try it online!Try it online!

Explanation

♀╒       Push 100 and convert to 1-based range ([1,2,...,100])
  gČ{     FilterInverse filter by block
    2╧   Does the number contain 2?
      ┌  Invert boolean

MathGolf, 7 bytes

♀╒g{2╧┌

Try it online!

Explanation

♀╒       Push 100 and convert to 1-based range ([1,2,...,100])
  g{     Filter by block
    2╧   Does the number contain 2?
      ┌  Invert boolean

MathGolf, 7 6 bytes

♀╒Ç{2╧

Try it online!

Explanation

♀╒       Push 100 and convert to 1-based range ([1,2,...,100])
  Č{     Inverse filter by block
    2╧   Does the number contain 2?
1
source | link

MathGolf, 7 bytes

♀╒g{2╧┌

Try it online!

Explanation

♀╒       Push 100 and convert to 1-based range ([1,2,...,100])
  g{     Filter by block
    2╧   Does the number contain 2?
      ┌  Invert boolean