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 07:18olliecrowolliecrowScore: 13,601Success
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 07:2113,18719,670,43410,550,0001,055,0002,445,312
2Apr 30, 2026 07:2113,36930,821,10910,696,0001,069,0002,379,776
3Apr 30, 2026 07:2113,38128,924,3199,635,0002,141,0002,379,776
4Apr 30, 2026 07:2113,59020,089,3938,970,0002,990,0002,347,008
5Apr 30, 2026 07:2113,60119,944,99310,972,000997,0002,424,832
6Apr 30, 2026 07:2113,61920,171,9869,988,0001,997,0002,535,424
7Apr 30, 2026 07:2113,62820,030,44410,994,000999,0002,449,408
8Apr 30, 2026 07:2113,75419,961,4889,078,0003,026,0002,527,232
9Apr 30, 2026 07:2114,03120,204,9089,261,0003,087,0002,351,104