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 listMar 21, 2026 22:22Dominique GarmierDominique GarmierScore: 11,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 22:2211,80928,150,5689,353,0001,039,0002,441,216
2Mar 21, 2026 22:2211,81930,717,43910,401,00002,441,216
3Mar 21, 2026 22:2211,85331,295,9409,388,0001,043,0002,342,912
4Mar 21, 2026 22:2211,87027,394,5448,357,0002,089,0002,273,280
5Mar 21, 2026 22:2211,87829,787,3959,408,0001,045,0002,457,600
6Mar 21, 2026 22:2211,88326,622,73710,457,00002,338,816
7Mar 21, 2026 22:2211,90227,548,8969,427,0001,047,0002,330,624
8Mar 21, 2026 22:2211,98037,057,93410,542,00002,478,080
9Mar 21, 2026 22:2212,27839,672,9198,841,0001,964,0002,514,944