Skip to content

Commit

Permalink
Added problem 29
Browse files Browse the repository at this point in the history
  • Loading branch information
ditekunov authored Jun 15, 2018
1 parent fa5b319 commit 375300a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scala/Problem_29.scala
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 375300a

Please sign in to comment.