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 20:52Dominique GarmierDominique GarmierScore: 13,533Success
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 20:5213,34327,923,49510,675,0001,067,0002,273,280
2Mar 21, 2026 20:5213,40129,284,25311,793,00002,396,160
3Mar 21, 2026 20:5213,50628,321,32410,895,000990,0002,273,280
4Mar 21, 2026 20:5213,52427,645,28110,910,000991,0002,273,280
5Mar 21, 2026 20:5213,53330,060,68910,917,000992,0002,273,280
6Mar 21, 2026 20:5213,53632,385,35810,920,000992,0002,408,448
7Mar 21, 2026 20:5213,53827,770,82411,913,00002,396,160
8Mar 21, 2026 20:5213,54330,271,65810,925,000993,0002,273,280
9Mar 21, 2026 20:5213,54432,873,8279,933,0001,986,0002,273,280