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:04Dan StolyarovDan StolyarovScore: 7,947,566Success
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:047,903,6406,988,331,5176,953,204,0001,999,0002,293,760
2Nov 6, 2024 18:047,916,2146,998,721,8046,961,270,0004,998,0002,281,472
3Nov 6, 2024 18:047,920,1447,000,439,5506,967,728,0001,999,0002,281,472
4Nov 6, 2024 18:047,939,3407,015,032,6666,984,620,0001,999,0002,289,664
5Nov 6, 2024 18:047,947,5667,016,167,3636,992,859,000999,0002,281,472
6Nov 6, 2024 18:047,956,0057,032,446,3947,000,285,000999,0002,293,760
7Nov 6, 2024 18:047,961,4097,033,856,6937,004,041,0001,999,0002,281,472
8Nov 6, 2024 18:047,980,2197,054,831,4697,020,594,0001,999,0002,281,472
9Nov 6, 2024 18:047,998,7337,071,139,9417,036,886,0001,999,0002,281,472