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 21, 2026 22:38Josu San MartinJosu San MartinScore: 43,217Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:4142,94846,877,89735,727,0002,068,0002,113,536
2Jun 21, 2026 22:4143,06046,894,33435,836,0002,057,0002,113,536
3Jun 21, 2026 22:4143,16247,030,38135,862,0002,121,0002,113,536
4Jun 21, 2026 22:4143,16846,993,35035,885,0002,103,0002,113,536
5Jun 21, 2026 22:4143,21747,030,32235,947,0002,084,0002,113,536
6Jun 21, 2026 22:4143,24547,057,66035,953,0002,103,0002,113,536
7Jun 21, 2026 22:4143,25747,033,53636,011,0002,056,0002,113,536
8Jun 21, 2026 22:4143,28547,111,74135,960,0002,131,0002,113,536
9Jun 21, 2026 22:4143,36947,138,04436,060,0002,105,0002,113,536