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 10, 2025 16:34wainCGPwainCGPScore: 18,543Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2025 16:3418,49333,258,81914,240,0002,034,0002,273,280
2Mar 10, 2025 16:3118,53832,020,62414,274,0002,039,0002,285,568
3Mar 10, 2025 16:3118,54138,565,37614,277,0002,039,0002,277,376
4Mar 10, 2025 16:3418,54337,132,72314,279,0002,039,0002,289,664
5Mar 10, 2025 16:3418,54936,477,06714,283,0002,040,0002,371,584
6Mar 10, 2025 16:3118,71132,868,14415,437,0001,029,0002,289,664