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 7, 2025 18:25wainCGPwainCGPScore: 18,626Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2025 18:2518,50232,750,31715,265,0001,017,0002,269,184
2Mar 7, 2025 18:2518,53932,378,38714,275,0002,039,0002,269,184
3Mar 7, 2025 18:2518,56137,474,92714,293,0002,041,0002,289,664
4Mar 7, 2025 18:2518,57732,939,43014,305,0002,043,0002,273,280
5Mar 7, 2025 18:2518,62634,490,32115,367,0001,024,0002,379,776
6Mar 7, 2025 18:2518,66833,601,11615,402,0001,026,0002,289,664
7Mar 7, 2025 18:2518,71934,382,67215,444,0001,029,0002,289,664
8Mar 7, 2025 18:2518,75042,625,52416,500,00002,289,664
9Mar 7, 2025 18:2518,94043,340,54015,626,0001,041,0002,289,664