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 25, 2026 23:30olliecrowolliecrowScore: 13,632Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:3113,24029,505,22210,593,0001,059,0002,338,816
2Apr 25, 2026 23:3113,35729,016,46710,687,0001,068,0002,338,816
3Apr 25, 2026 23:3113,58229,880,5699,961,0001,992,0002,334,720
4Apr 25, 2026 23:3113,60624,766,3659,979,0001,995,0002,338,816
5Apr 25, 2026 23:3113,63229,420,78310,998,000999,0002,342,912
6Apr 25, 2026 23:3113,63228,410,9399,998,0001,999,0002,338,816
7Apr 25, 2026 23:3113,72727,276,03010,067,0002,013,0002,338,816
8Apr 25, 2026 23:3114,12325,778,96411,394,0001,035,0002,334,720
9Apr 25, 2026 23:3114,23829,808,02611,486,0001,044,0002,318,336