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 15:35Dominique GarmierDominique GarmierScore: 14,697Success
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 15:5214,66532,318,72910,920,0001,985,0002,363,392
2Mar 22, 2026 15:5214,67038,983,62610,924,0001,986,0002,363,392
3Mar 22, 2026 15:5214,67335,811,89310,926,0001,986,0002,289,664
4Mar 22, 2026 15:3514,69736,307,89610,944,0001,989,0002,371,584
5Mar 22, 2026 15:3514,71039,227,68710,954,0001,991,0002,289,664
6Mar 22, 2026 15:3514,77534,621,48311,002,0002,000,0002,289,664