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:36apuxbtapuxbtScore: 35,100Success
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:3634,70056,315,67029,519,0001,017,0002,383,872
2Oct 2, 2023 18:3634,894106,578,54030,706,51902,256,896
3Oct 2, 2023 18:3634,90259,321,68030,714,00002,387,968
4Oct 2, 2023 18:3634,915106,378,50430,725,50702,265,088
5Oct 2, 2023 18:3634,955102,034,22230,760,65702,265,088
6Oct 2, 2023 18:3635,10061,525,71529,892,000996,0002,379,776
7Oct 2, 2023 18:3635,10060,782,19428,896,0001,992,0002,379,776
8Oct 2, 2023 18:3635,10156,292,53329,893,000996,0002,383,872
9Oct 2, 2023 18:3635,11159,683,53828,905,0001,993,0002,379,776
10Oct 2, 2023 18:3635,13157,430,77030,915,00002,379,776
11Oct 2, 2023 18:3635,15957,465,76028,944,0001,996,0002,383,872
12Oct 2, 2023 18:3635,41454,632,29928,149,0003,015,0002,379,776