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 20, 2026 15:17BenBenScore: 137,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 15:21136,862142,589,657116,425,0004,014,0002,437,120
2Apr 20, 2026 15:21136,914140,535,843117,473,0003,012,0002,445,312
3Apr 20, 2026 15:21137,026149,359,957117,569,0003,014,0002,433,024
4Apr 20, 2026 15:21137,131148,580,474117,660,0003,016,0002,441,216
5Apr 20, 2026 15:21137,138148,514,298117,665,0003,017,0002,437,120
6Apr 20, 2026 15:21137,307150,306,355116,837,0003,994,0002,281,472
7Apr 20, 2026 15:21137,330154,420,285116,856,0003,995,0002,441,216
8Apr 20, 2026 15:21137,389142,664,073117,906,0002,997,0002,281,472
9Apr 20, 2026 15:21137,668139,862,982118,145,0003,003,0002,437,120