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 listApr 23, 2026 10:10Victor MerckléVictor MerckléScore: 15,182Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 10:1115,11528,413,33212,279,0001,023,0002,379,776
2Apr 23, 2026 10:1115,14827,931,25912,306,0001,025,0002,387,968
3Apr 23, 2026 10:1115,15433,701,99912,311,0001,025,0002,375,680
4Apr 23, 2026 10:1115,17731,536,45812,329,0001,027,0002,392,064
5Apr 23, 2026 10:1115,18229,754,97912,334,0001,027,0002,387,968
6Apr 23, 2026 10:1115,23733,269,33212,378,0001,031,0002,387,968
7Apr 23, 2026 10:1115,28030,174,16012,413,0001,034,0002,379,776
8Apr 23, 2026 10:1115,30430,372,88012,432,0001,036,0002,383,872
9Apr 23, 2026 10:1115,32232,847,98612,447,0001,037,0002,387,968