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 listOct 3, 2023 01:19apuxbtapuxbtScore: 29,534Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 01:1929,19784,042,19025,693,37302,232,320
2Oct 3, 2023 01:1929,26694,998,65725,754,20502,215,936
3Oct 3, 2023 01:1929,32584,813,48525,806,23602,224,128
4Oct 3, 2023 01:1929,48248,563,63123,949,0001,995,0002,510,848
5Oct 3, 2023 01:1929,49249,638,85023,957,0001,996,0002,510,848
6Oct 3, 2023 01:1929,52655,669,34924,984,000999,0002,293,760
7Oct 3, 2023 01:1929,53452,444,19423,991,0001,999,0002,502,656
8Oct 3, 2023 01:1929,59153,202,14624,037,0002,003,0002,293,760
9Oct 3, 2023 01:1929,61748,838,26925,061,0001,002,0002,293,760
10Oct 3, 2023 01:1929,62747,627,81624,067,0002,005,0002,293,760
11Oct 3, 2023 01:1929,63853,893,98725,078,0001,003,0002,494,464
12Oct 3, 2023 01:1929,64248,379,98024,079,0002,006,0002,502,656