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 19, 2026 05:12limanjun99limanjun99Score: 25,250Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 05:1224,95645,785,06219,965,0001,996,0002,310,144
2Mar 19, 2026 05:1224,97652,790,34119,981,0001,998,0002,379,776
3Mar 19, 2026 05:1225,03047,992,63821,025,0001,001,0002,306,048
4Mar 19, 2026 05:1225,23150,274,98920,185,0002,018,0002,453,504
5Mar 19, 2026 05:1225,25044,882,25420,200,0002,020,0002,273,280
6Mar 19, 2026 05:1225,26040,305,98120,209,0002,020,0002,306,048
7Mar 19, 2026 05:1225,28148,498,71420,225,0002,022,0002,445,312
8Mar 19, 2026 05:1225,93544,022,00921,831,000992,0002,404,352
9Mar 19, 2026 05:1226,45753,361,50921,258,0002,024,0002,441,216