Skip to content

Latest commit

 

History

History

codejam

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Code Jam

Succ

def succ(src: String): String = ???

assert(succ("") == "")
assert(succ("R2D3") == "R2D4")
assert(succ("R2D9") == "R2E0")
assert(succ("A99") == "B00")
assert(succ("Z99") == "AA00")
assert(succ("Zz99") == "AAa00")
assert(succ("9Z") == "10A")

http://www.gtan.com/job03.html

First Prime Greate Than A Number

def firstPrimeGreatThan(num: Int): Int = ???

assert(firstPrimeGreatThan(4) == 5)
assert(firstPrimeGreatThan(20) == 23)
assert(firstPrimeGreatThan(100) == 101)