6 kyu Does my number look big in this?
- def narcissistic(n: Int): Boolean = n.toString.toList.map(_.asDigit) .map(x=>Math.pow(x,n.toString.length).toInt).sum==n
We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.
We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!
Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.