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 13, 2024 09:29Dan StolyarovDan StolyarovScore: 3,103,944Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 09:293,098,0072,760,019,2042,722,248,0003,998,0002,461,696
2Nov 13, 2024 09:293,103,9442,765,013,3522,728,472,0002,999,0002,281,472
3Nov 13, 2024 09:293,112,6852,767,106,6792,735,165,0003,998,0002,281,472