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 6, 2025 18:31wainCGPwainCGPScore: 23,765Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 6, 2025 18:3123,75350,950,95019,908,000995,0002,289,664
2Mar 6, 2025 18:3123,75955,846,44019,913,000995,0002,289,664
3Mar 6, 2025 18:3123,76353,397,30619,916,000995,0002,289,664
4Mar 6, 2025 18:3123,76446,348,29519,917,000995,0002,281,472
5Mar 6, 2025 18:3123,76549,171,61718,922,0001,991,0002,523,136
6Mar 6, 2025 18:3123,77046,654,15219,922,000996,0002,289,664
7Mar 6, 2025 18:3123,84337,087,18219,983,000999,0002,265,088
8Mar 6, 2025 18:3123,92444,190,35119,048,0002,005,0002,289,664
9Mar 6, 2025 18:3123,92745,991,75219,051,0002,005,0002,289,664