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 11:02olliecrowolliecrowScore: 19,817Success
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 11:0519,44425,137,47115,098,0002,013,0002,375,680
2Apr 29, 2026 11:0519,51436,243,31715,153,0002,020,0002,482,176
3Apr 29, 2026 11:0519,67225,279,34016,294,0001,018,0002,375,680
4Apr 29, 2026 11:0519,78225,431,02716,385,0001,024,0002,379,776
5Apr 29, 2026 11:0519,81725,481,82215,388,0002,051,0002,375,680
6Apr 29, 2026 11:0519,86225,476,86515,423,0002,056,0002,363,392
7Apr 29, 2026 11:0519,88525,486,75316,470,0001,029,0002,359,296
8Apr 29, 2026 11:0520,56325,168,45615,080,0003,016,0002,359,296
9Apr 29, 2026 11:0520,67025,143,05116,169,0002,021,0002,482,176