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 29, 2026 05:42olliecrowolliecrowScore: 15,075Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 05:4314,99632,611,73212,182,0001,015,0002,441,216stderr
2Apr 29, 2026 05:4315,03833,990,63511,198,0002,036,0002,371,584stderr
3Apr 29, 2026 05:4315,05433,723,24212,229,0001,019,0002,428,928stderr
4Apr 29, 2026 05:4315,05930,695,52812,233,0001,019,0002,371,584stderr
5Apr 29, 2026 05:4315,07529,226,47212,246,0001,020,0002,428,928stderr
6Apr 29, 2026 05:4315,09430,587,96112,262,0001,021,0002,416,640stderr
7Apr 29, 2026 05:4315,10929,111,73812,274,0001,022,0002,510,848stderr
8Apr 29, 2026 05:4315,12531,289,80012,287,0001,023,0002,371,584stderr
9Apr 29, 2026 05:4315,16531,269,67912,320,0001,026,0002,428,928stderr