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 1, 2025 16:57DanielDanielScore: 71,400Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 16:5770,98385,300,00762,465,00002,289,664
2Mar 1, 2025 16:5771,03984,972,40062,514,00002,502,656
3Mar 1, 2025 16:5771,31896,656,32762,760,00002,289,664
4Mar 1, 2025 16:5771,36687,342,75461,790,0001,012,0002,367,488
5Mar 1, 2025 16:5771,40089,496,96560,838,0001,994,0002,437,120
6Mar 1, 2025 16:5771,46694,975,45961,892,000998,0002,289,664
7Mar 1, 2025 16:5771,47091,543,35960,898,0001,996,0002,363,392
8Mar 1, 2025 16:5771,61189,452,91261,018,0002,000,0002,359,296
9Mar 1, 2025 16:5771,64589,319,75662,048,0001,000,0002,289,664