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 listMar 22, 2026 20:08Dominique GarmierDominique GarmierScore: 213,794Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 22, 2026 10:20213,180207,920,438186,595,0001,003,0002,498,560
2Mar 22, 2026 10:20213,260213,494,860187,669,00002,494,464
3Mar 22, 2026 20:08213,718218,209,991187,072,0001,000,0002,494,464
4Mar 22, 2026 20:08213,794209,742,583187,139,0001,000,0002,277,376
5Mar 22, 2026 20:08214,416215,232,640187,683,0001,003,0002,494,464
6Mar 22, 2026 10:20214,999211,459,973187,197,0002,002,0002,277,376