Browser-based compiler and playground for Kotlin, Progsity IDE.
Kotlin is the language most Android apps are written in today, and it runs anywhere Java does. It keeps Java's libraries and drops much of the ceremony: no semicolons, type inference, null safety checked by the compiler, and collection functions that read like the problem statement.
This playground compiles your file with the real Kotlin compiler and runs it on a Java 17 virtual machine inside a sandbox. Write a top-level fun main(), leave out the package line, and use the standard library freely. The first run takes a few seconds because the compiler itself starts on the JVM.
It is the same toolchain the Progsity judge uses, so a solution that passes here behaves the same way in a contest or an exam that allows Kotlin.
Kotlin 2.4, compiled by JetBrains' own compiler and run on OpenJDK 17.
The Kotlin compiler is a JVM program and has to start before it reads your file. The time is spent compiling; your program's own run time is reported separately.
Yes. Everything in the Java 17 standard library is available: java.util, java.math.BigInteger, java.io and the rest. Third-party libraries are not.
readln() is fine for small input. For a hundred thousand numbers, wrap System.`in` in a BufferedReader and split each line yourself.
Yes, after you sign in. A saved snippet has its own link you can share.
Tap “Try this” to load sample code into the editor above.
fun main() {
val nums = listOf(3, 1, 4, 1, 5, 9)
println(nums.sorted())
println(nums.filter { it % 2 == 1 }.sum())
}fun grade(score: Int): String = when {
score >= 80 -> "A+"
score >= 60 -> "A"
else -> "Try again"
}
fun main() {
for (score in listOf(85, 64, 40)) {
println("$score -> " + grade(score))
}
}fun main() {
val (a, b) = readln().split(" ").map { it.toLong() }
println(a + b)
}data class Point(val x: Int, val y: Int)
fun main() {
val p = Point(2, 3)
val q = p.copy(y = 10)
println(p)
println(q)
}Competitive Programming for Beginners
৳3,999 ৳7,999 50% off
Live Bangla cohort starts in October · Bangla live batch · Starts Dec 5, 2026
Run your code to see output here.