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 13, 2026 15:13Dominique GarmierDominique GarmierScore: 117,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 15:13117,115133,803,765101,060,0002,001,0002,289,664
2Mar 13, 2026 15:13117,217128,492,701101,149,0002,002,0002,289,664
3Mar 13, 2026 15:13117,403128,923,547103,315,00002,289,664
4Mar 13, 2026 15:13117,495130,255,061101,389,0002,007,0002,519,040
5Mar 13, 2026 15:13117,523125,409,480102,416,0001,004,0002,289,664
6Mar 13, 2026 15:13117,786126,316,368102,646,0001,006,0002,260,992
7Mar 13, 2026 15:13118,014130,151,204101,855,0001,997,0002,289,664
8Mar 13, 2026 15:13118,023130,064,462101,863,0001,997,0002,289,664
9Mar 13, 2026 15:13118,027132,244,013102,866,000998,0002,289,664