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 22, 2026 23:21Josu San MartinJosu San MartinScore: 5,361Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 23:235,22612,118,6714,599,00002,113,536
2Jun 22, 2026 23:235,23212,101,4674,605,00002,113,536
3Jun 22, 2026 23:235,33613,450,3994,696,00002,113,536
4Jun 22, 2026 23:235,34012,159,9934,700,00002,113,536
5Jun 22, 2026 23:235,36112,169,7224,718,00002,113,536
6Jun 22, 2026 23:235,37612,506,1554,731,00002,113,536
7Jun 22, 2026 23:235,37612,448,0494,731,00002,113,536
8Jun 22, 2026 23:235,38012,212,6634,735,00002,113,536
9Jun 22, 2026 23:235,71712,553,2295,031,00002,113,536