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 26, 2026 20:01TudyMTudyMScore: 115,422Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:02114,905118,241,24399,115,0002,002,0002,359,296
2Apr 26, 2026 20:02115,006117,304,06099,202,0002,004,0002,379,776
3Apr 26, 2026 20:02115,013116,553,844100,210,0001,002,0002,326,528
4Apr 26, 2026 20:02115,048118,732,77599,239,0002,004,0002,326,528
5Apr 26, 2026 20:02115,422120,459,965100,567,0001,005,0002,326,528
6Apr 26, 2026 20:02115,422114,957,61399,561,0002,011,0002,367,488
7Apr 26, 2026 20:02115,439119,776,823100,582,0001,005,0002,359,296
8Apr 26, 2026 20:02115,661116,166,98098,789,0002,993,0002,375,680
9Apr 26, 2026 20:02115,663122,172,06899,789,0001,995,0002,367,488