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 listNov 6, 2024 18:59Dan StolyarovDan StolyarovScore: 772,064Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2024 18:59766,743702,560,503670,736,0003,998,0002,281,472
2Nov 6, 2024 18:59770,475701,350,138675,018,0003,000,0002,281,472
3Nov 6, 2024 18:59770,793708,411,755675,297,0003,001,0002,281,472
4Nov 6, 2024 18:59771,034703,756,657674,513,0003,997,0002,494,464
5Nov 6, 2024 18:59772,064706,945,283677,415,0002,001,0002,293,760
6Nov 6, 2024 18:59773,217705,676,621676,435,0003,996,0002,301,952
7Nov 6, 2024 18:59773,440702,923,280676,630,0003,997,0002,490,368
8Nov 6, 2024 18:59774,594703,824,059677,646,0003,997,0002,453,504
9Nov 6, 2024 18:59776,165715,786,211679,025,0004,000,0002,457,600