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 26, 2026 04:49olliecrowolliecrowScore: 120,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:50119,990122,631,375102,576,0003,016,0002,342,912stderr
2Apr 26, 2026 04:50120,350123,156,273101,912,0003,996,0002,453,504stderr
3Apr 26, 2026 04:50120,376124,115,284101,934,0003,997,0002,437,120stderr
4Apr 26, 2026 04:50120,427121,974,580101,977,0003,999,0002,342,912stderr
5Apr 26, 2026 04:50120,555122,716,917102,086,0004,003,0002,445,312stderr
6Apr 26, 2026 04:50120,564122,610,275102,094,0004,003,0002,326,528stderr
7Apr 26, 2026 04:50120,661124,708,714102,176,0004,006,0002,453,504stderr
8Apr 26, 2026 04:50120,910122,155,307102,386,0004,015,0002,449,408stderr
9Apr 26, 2026 04:50121,254124,381,211102,716,0003,988,0002,539,520stderr