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 23, 2026 11:44Dominique GarmierDominique GarmierScore: 13,745Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 11:4513,65730,585,06510,016,0002,003,0002,326,528
2Apr 23, 2026 11:4513,66431,009,61710,021,0002,004,0002,379,776
3Apr 23, 2026 11:4513,68831,538,85610,039,0002,007,0002,326,528
4Apr 23, 2026 11:4513,69330,032,49010,042,0002,008,0002,379,776
5Apr 23, 2026 11:4513,74527,403,76710,080,0002,016,0002,371,584
6Apr 23, 2026 11:4513,74725,230,21010,082,0002,016,0002,392,064
7Apr 23, 2026 11:4513,77327,150,65510,101,0002,020,0002,383,872
8Apr 23, 2026 11:4513,78231,655,97310,108,0002,021,0002,379,776
9Apr 23, 2026 11:4513,81929,331,15811,148,0001,013,0002,375,680