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 listJan 17, 2026 05:36Josu San MartinJosu San MartinScore: 41,493Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:3641,32260,166,78235,353,0001,010,0002,449,408
2Jan 17, 2026 05:3641,33361,641,79235,363,0001,010,0002,281,472
3Jan 17, 2026 05:3641,39257,669,09336,425,00002,449,408
4Jan 17, 2026 05:3641,47063,692,85535,481,0001,013,0002,445,312
5Jan 17, 2026 05:3641,49364,151,46135,500,0001,014,0002,445,312
6Jan 17, 2026 05:3641,50361,381,19335,509,0001,014,0002,441,216
7Jan 17, 2026 05:3641,53161,896,02635,532,0001,015,0002,281,472
8Jan 17, 2026 05:3641,53559,749,21535,536,0001,015,0002,441,216
9Jan 17, 2026 05:3641,69065,172,83935,668,0001,019,0002,453,504