How sharp are your ClickHouse® skills?
You could win this T-shirt… but only if you beat us. 😉
Are you ready?
Write a ClickHouse query that would return the 1000th natural number that is both:
- A prime number by itself;
- The sum of its digits is also a prime number
Looking for an example? The first number that fits the critieria is 2.

Our engineers got the query to run in under 200 milliseconds. Think you can beat this? Here’s what to do:
- Run your query through our ClickHouse server (user: demo ; password: demo)
- Post your query on our #clickhousepuzzle Slack channel
*please see rules below*
PS. If you need inspiration, you can see some past submissions on Slack (some queries are running under 10 ms) 👀
Rules
To snag a t-shirt, you’ll need to follow a few rules.

