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 17:09olliecrowolliecrowScore: 13,527Success
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 17:1013,43129,368,1499,850,0001,970,0002,338,816stderr
2Apr 29, 2026 17:1013,46131,387,3739,872,0001,974,0002,330,624stderr
3Apr 29, 2026 17:1013,48429,860,63410,788,0001,078,0002,330,624stderr
4Apr 29, 2026 17:1013,51727,958,0919,913,0001,982,0002,338,816stderr
5Apr 29, 2026 17:1013,52731,496,1109,920,0001,984,0002,338,816stderr
6Apr 29, 2026 17:1013,52931,233,9749,922,0001,984,0002,318,336stderr
7Apr 29, 2026 17:1013,53528,149,5559,926,0001,985,0002,338,816stderr
8Apr 29, 2026 17:1013,56227,640,61010,941,000994,0002,347,008stderr
9Apr 29, 2026 17:1013,59732,873,6719,972,0001,994,0002,347,008stderr