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 24, 2026 15:29olliecrowolliecrowScore: 149,905Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 15:29149,156145,870,535129,255,0002,003,0002,306,048stderr
2Apr 24, 2026 15:29149,334145,884,692129,408,0002,006,0002,306,048stderr
3Apr 24, 2026 15:29149,739151,118,057128,777,0002,994,0002,310,144stderr
4Apr 24, 2026 15:29149,897151,407,161128,913,0002,997,0002,310,144stderr
5Apr 24, 2026 15:29149,905155,084,456129,919,0001,998,0002,310,144stderr
6Apr 24, 2026 15:29150,007154,108,363129,007,0003,000,0002,564,096stderr
7Apr 24, 2026 15:29150,061147,765,889129,053,0003,001,0002,306,048stderr
8Apr 24, 2026 15:29150,492152,217,894130,427,0002,006,0002,310,144stderr
9Apr 24, 2026 15:29150,978148,678,354129,865,0002,996,0002,330,624stderr