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:41Dan StolyarovDan StolyarovScore: 802,314Success
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:41794,366725,904,428695,042,0004,000,0002,289,664
2Nov 6, 2024 18:41795,430725,070,460696,979,0002,999,0002,510,848
3Nov 6, 2024 18:41797,252732,157,432698,584,0002,998,0002,449,408
4Nov 6, 2024 18:41801,828727,822,824701,612,0003,997,0002,457,600
5Nov 6, 2024 18:41802,314732,480,853702,036,0004,000,0002,441,216
6Nov 6, 2024 18:41802,383732,604,148702,097,0004,000,0002,510,848
7Nov 6, 2024 18:41804,061742,421,138704,576,0002,998,0002,457,600
8Nov 6, 2024 18:41805,207737,189,926704,585,0003,997,0002,281,472
9Nov 6, 2024 18:41805,568733,703,442704,901,0003,999,0002,281,472