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:25Dominique GarmierDominique GarmierScore: 11,830Success
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:2511,73631,341,5889,296,0001,032,0002,441,216
2Mar 21, 2026 22:2511,73926,932,4419,297,0001,033,0002,433,024
3Mar 21, 2026 22:2511,75528,798,8389,310,0001,034,0002,502,656
4Mar 21, 2026 22:2511,80730,018,7729,351,0001,039,0002,355,200
5Mar 21, 2026 22:2511,83029,324,50010,410,00002,441,216
6Mar 21, 2026 22:2511,89132,398,8699,418,0001,046,0002,453,504
7Mar 21, 2026 22:2511,90629,643,21710,477,00002,441,216
8Mar 21, 2026 22:2511,93533,865,22810,503,00002,445,312
9Mar 21, 2026 22:2512,00226,701,65110,562,00002,273,280