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 28, 2026 12:06Dominique GarmierDominique GarmierScore: 10,380Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:0710,31427,475,2287,060,0002,017,0002,363,392
2Apr 28, 2026 12:0710,31727,615,9127,062,0002,017,0002,359,296
3Apr 28, 2026 12:0710,32725,540,3567,069,0002,019,0002,363,392
4Apr 28, 2026 12:0710,37827,714,4967,104,0002,029,0002,326,528
5Apr 28, 2026 12:0710,38024,163,7006,090,0003,045,0002,367,488
6Apr 28, 2026 12:0710,40727,454,4487,124,0002,035,0002,367,488
7Apr 28, 2026 12:0710,48727,677,0058,204,0001,025,0002,359,296
8Apr 28, 2026 12:0710,51828,634,8627,199,0002,057,0002,326,528
9Apr 28, 2026 12:0710,57127,025,1258,270,0001,033,0002,367,488