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 29, 2026 20:22olliecrowolliecrowScore: 19,888Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 20:2519,48835,286,84015,133,0002,017,0002,494,464
2Apr 29, 2026 20:2519,77525,436,34716,379,0001,023,0002,359,296
3Apr 29, 2026 20:2519,80225,383,95315,376,0002,050,0002,379,776
4Apr 29, 2026 20:2519,81825,378,59117,440,00002,531,328
5Apr 29, 2026 20:2519,88825,578,54016,473,0001,029,0002,379,776
6Apr 29, 2026 20:2519,93925,618,08916,515,0001,032,0002,326,528
7Apr 29, 2026 20:2519,98825,644,66316,556,0001,034,0002,379,776
8Apr 29, 2026 20:2520,00125,438,80816,566,0001,035,0002,355,200
9Apr 29, 2026 20:2520,06025,620,97415,577,0002,076,0002,379,776