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 13, 2026 14:27Dominique GarmierDominique GarmierScore: 159,817Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 14:27159,484162,706,808140,346,00002,289,664
2Mar 13, 2026 14:27159,553165,274,263140,407,00002,269,184
3Mar 13, 2026 14:27159,577168,615,123140,428,00002,355,200
4Mar 13, 2026 14:27159,759162,687,364140,588,00002,289,664
5Mar 13, 2026 14:27159,817167,061,714140,639,00002,289,664
6Mar 13, 2026 14:27159,908167,687,009139,714,0001,005,0002,363,392
7Mar 13, 2026 14:27160,059165,928,020138,855,0001,997,0002,289,664
8Mar 13, 2026 14:27160,144171,732,548138,929,0001,998,0002,285,568
9Mar 13, 2026 14:27161,192167,398,150140,851,000998,0002,506,752