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 2, 2023 18:44apuxbtapuxbtScore: 33,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 18:4433,27693,770,54129,282,45802,244,608
2Oct 2, 2023 18:4433,335102,236,37329,335,18602,256,896
3Oct 2, 2023 18:4433,50798,652,85729,485,90502,252,800
4Oct 2, 2023 18:4433,66655,575,18828,605,0001,021,0002,392,064
5Oct 2, 2023 18:4433,72254,200,76228,652,0001,023,0002,527,232
6Oct 2, 2023 18:4433,73453,637,58228,663,0001,023,0002,383,872
7Oct 2, 2023 18:4433,73660,653,51728,665,0001,023,0002,387,968
8Oct 2, 2023 18:4433,77462,538,24728,697,0001,024,0002,523,136
9Oct 2, 2023 18:4433,78663,746,28829,732,00002,387,968
10Oct 2, 2023 18:4433,82658,990,19326,688,0003,079,0002,269,184
11Oct 2, 2023 18:4433,96556,648,62527,897,0001,992,0002,527,232
12Oct 2, 2023 18:4433,98052,836,80827,909,0001,993,0002,322,432