Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 23, 2026 15:37Victor MerckléVictor MerckléScore: 5,269Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 15:405,15512,021,4824,537,00002,113,536
2Jun 23, 2026 15:405,15612,032,9204,538,00002,113,536
3Jun 23, 2026 15:405,25312,152,1194,623,00002,113,536
4Jun 23, 2026 15:405,26112,404,0654,630,00002,113,536
5Jun 23, 2026 15:405,26912,189,9454,637,00002,113,536
6Jun 23, 2026 15:405,29712,123,6904,662,00002,113,536
7Jun 23, 2026 15:405,30612,441,9644,670,00002,113,536
8Jun 23, 2026 15:405,32612,432,9114,687,00002,113,536
9Jun 23, 2026 15:405,38812,229,0244,742,00002,113,536