Skip to main content
deleted 2 characters in body
Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (3131 25 chars)

:^10base..[10base{.{+}*+(:x^<\}do;x^=9^<&@*]?0>

Input as an integer on top of the stack. Output is 0 (false) or 1 (true). Online demoOnline demo which lists the Keith numbers up to 100.

GolfScript (31 chars)

:^10base{.{+}*+(:x^<}do;x^=9^<&

Input as an integer on top of the stack. Output is 0 (false) or 1 (true). Online demo which lists the Keith numbers up to 100.

GolfScript (31 25 chars)

..[10base{.{+}*+(\}@*]?0>

Input as an integer on top of the stack. Output is 0 (false) or 1 (true). Online demo which lists the Keith numbers up to 100.

Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (31 chars)

:^10base{.{+}*+(:x^<}do;x^=9^<&

Input as an integer on top of the stack. Output is 0 (false) or 1 (true). Online demo which lists the Keith numbers up to 100.