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 03:17olliecrowolliecrowScore: 178,355Success
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 03:18177,370172,157,797152,084,0004,002,0002,445,312stderr
2Apr 23, 2026 03:18177,884175,923,445153,528,0003,010,0002,453,504stderr
3Apr 23, 2026 03:18178,180175,749,652152,805,0003,994,0002,461,696stderr
4Apr 23, 2026 03:18178,270173,304,858152,882,0003,996,0002,453,504stderr
5Apr 23, 2026 03:18178,355174,618,500152,955,0003,998,0002,461,696stderr
6Apr 23, 2026 03:18178,446175,061,142153,033,0004,000,0002,457,600stderr
7Apr 23, 2026 03:18178,473178,296,079153,056,0004,001,0002,465,792stderr
8Apr 23, 2026 03:18178,579175,798,537154,148,0003,002,0002,453,504stderr
9Apr 23, 2026 03:18179,010172,729,370154,519,0003,010,0002,457,600stderr