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 30, 2026 12:44olliecrowolliecrowScore: 11,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 12:4511,45229,396,4488,063,0002,015,0002,547,712
2Apr 30, 2026 12:4511,50125,538,3549,109,0001,012,0002,547,712
3Apr 30, 2026 12:4511,50231,083,3929,110,0001,012,0002,543,616
4Apr 30, 2026 12:4511,59627,342,6539,185,0001,020,0002,330,624
5Apr 30, 2026 12:4511,67224,891,6989,245,0001,027,0002,543,616
6Apr 30, 2026 12:4511,67624,293,3379,248,0001,027,0002,547,712
7Apr 30, 2026 12:4511,73624,030,6059,296,0001,032,0002,543,616
8Apr 30, 2026 12:4511,75331,834,24910,343,00002,539,520
9Apr 30, 2026 12:4511,75426,961,1549,310,0001,034,0002,318,336