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 listApr 20, 2026 13:54Dominique GarmierDominique GarmierScore: 13,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 13:5513,78229,798,37810,108,0002,021,0002,273,280
2Apr 20, 2026 13:5513,78725,926,14010,111,0002,022,0002,375,680
3Apr 20, 2026 13:5513,79424,028,05110,116,0002,023,0002,379,776
4Apr 20, 2026 13:5513,79732,604,43210,119,0002,023,0002,273,280
5Apr 20, 2026 13:5513,87829,950,47711,196,0001,017,0002,375,680
6Apr 20, 2026 13:5513,88833,561,42811,204,0001,018,0002,371,584
7Apr 20, 2026 13:5513,89827,018,47711,212,0001,019,0002,375,680
8Apr 20, 2026 13:5513,90330,956,28110,196,0002,039,0002,273,280
9Apr 20, 2026 13:5514,00430,639,56711,297,0001,027,0002,433,024