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 00:47apuxbtapuxbtScore: 34,880Success
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 00:4734,52399,771,92730,380,29502,273,280
2Oct 3, 2023 00:4734,53796,173,42330,392,59602,277,376
3Oct 3, 2023 00:4734,547100,307,83130,401,13102,269,184
4Oct 3, 2023 00:4734,70057,014,23830,536,00002,461,696
5Oct 3, 2023 00:4734,81158,547,45227,571,0003,063,0002,457,600
6Oct 3, 2023 00:4734,84958,111,16829,645,0001,022,0002,281,472
7Oct 3, 2023 00:4734,88053,760,35229,671,0001,023,0002,281,472
8Oct 3, 2023 00:4734,89970,022,52827,640,0003,071,0002,457,600
9Oct 3, 2023 00:4735,07256,989,68027,877,0002,986,0002,285,568
10Oct 3, 2023 00:4735,11555,465,40929,905,000996,0002,297,856
11Oct 3, 2023 00:4735,11858,625,10528,911,0001,993,0002,277,376
12Oct 3, 2023 00:4735,12758,280,21027,921,0002,991,0002,396,160