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 28, 2026 10:25Dominique GarmierDominique GarmierScore: 13,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2026 15:1813,32432,083,29111,725,00002,342,912
2Mar 30, 2026 15:1813,37328,219,02410,699,0001,069,0002,289,664
3Mar 28, 2026 10:2513,38828,252,05111,781,00002,338,816
4Mar 30, 2026 15:1813,50031,031,6439,900,0001,980,0002,334,720
5Mar 28, 2026 10:2513,52429,320,0579,918,0001,983,0002,334,720
6Mar 28, 2026 10:2513,53431,258,04310,918,000992,0002,338,816