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:14Josu San MartinJosu San MartinScore: 5,273Success
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:175,22812,155,9124,601,00002,113,536
2Jun 22, 2026 23:175,23612,104,6434,608,00002,113,536
3Jun 22, 2026 23:175,23812,115,2984,610,00002,113,536
4Jun 22, 2026 23:175,24212,037,5324,613,00002,113,536
5Jun 22, 2026 23:175,27312,112,6344,641,00002,113,536
6Jun 22, 2026 23:175,36112,172,6724,718,00002,113,536
7Jun 22, 2026 23:175,37512,224,7234,730,00002,113,536
8Jun 22, 2026 23:175,37912,178,1684,734,00002,113,536
9Jun 22, 2026 23:175,71812,612,3155,032,00002,113,536