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 18:14olliecrowolliecrowScore: 27,342Success
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 18:1727,21442,155,13820,956,0002,993,0002,478,080
2Apr 28, 2026 18:1727,27745,063,29421,004,0003,000,0002,486,272
3Apr 28, 2026 18:1727,31332,142,46321,032,0003,004,0002,379,776
4Apr 28, 2026 18:1727,32132,152,39522,040,0002,003,0002,371,584
5Apr 28, 2026 18:1727,34232,225,27822,056,0002,005,0002,359,296
6Apr 28, 2026 18:1727,41143,086,80422,112,0002,010,0002,457,600
7Apr 28, 2026 18:1727,50532,274,70522,101,0002,104,0002,359,296
8Apr 28, 2026 18:1727,53632,289,53523,223,0001,009,0002,379,776
9Apr 28, 2026 18:1728,46532,013,30223,046,0002,004,0002,359,296