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 16:04Victor MerckléVictor MerckléScore: 24,994Success
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 16:0524,39650,081,88920,447,0001,022,0002,383,872
2Apr 20, 2026 16:0524,78238,156,22520,818,000991,0002,273,280
3Apr 20, 2026 16:0524,88047,411,80019,905,0001,990,0002,375,680
4Apr 20, 2026 16:0524,88747,341,61119,910,0001,991,0002,375,680
5Apr 20, 2026 16:0524,99447,475,60719,996,0001,999,0002,371,584
6Apr 20, 2026 16:0525,02541,188,20120,020,0002,002,0002,379,776
7Apr 20, 2026 16:0525,03245,319,09220,027,0002,002,0002,371,584
8Apr 20, 2026 16:0525,03946,538,26320,032,0002,003,0002,379,776
9Apr 20, 2026 16:0525,12144,183,91520,098,0002,009,0002,396,160