diff --git a/scala/Problem_29.scala b/scala/Problem_29.scala new file mode 100644 index 0000000..706577c --- /dev/null +++ b/scala/Problem_29.scala @@ -0,0 +1,7 @@ +object Main extends App { + + //O(n^2) + def task = (for (a <- 2 until 101; b <- 2 until 101) yield BigInt(a).pow(b)).distinct.length + + print(task) +}