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 23, 2026 23:43Dominique GarmierDominique GarmierScore: 28,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 23:3927,88651,616,63924,540,00002,502,656
2Mar 23, 2026 23:3927,89746,280,27424,549,00002,449,408
3Mar 23, 2026 23:4328,01350,461,28724,651,00002,355,200
4Mar 23, 2026 23:3928,08651,982,85723,687,0001,029,0002,445,312
5Mar 23, 2026 23:4328,29549,319,38824,900,00002,347,008
6Mar 23, 2026 23:4328,29750,855,65724,901,00002,445,312