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 21:31apuxbtapuxbtScore: 26,722Success
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 21:3125,42881,144,14522,376,25602,269,184
2Oct 3, 2023 21:3125,56090,014,29122,492,95802,269,184
3Oct 3, 2023 21:3125,59488,497,51022,523,15702,265,088
4Oct 3, 2023 21:3126,66845,941,60220,407,0003,061,0002,310,144
5Oct 3, 2023 21:3126,68149,362,06622,459,0001,020,0002,404,352
6Oct 3, 2023 21:3126,69948,440,29020,431,0003,064,0002,297,856
7Oct 3, 2023 21:3126,72252,386,47221,471,0002,044,0002,318,336
8Oct 3, 2023 21:3126,73949,666,27621,484,0002,046,0002,306,048
9Oct 3, 2023 21:3126,81846,827,08121,548,0002,052,0002,293,760
10Oct 3, 2023 21:3126,83941,047,90521,565,0002,053,0002,408,448
11Oct 3, 2023 21:3126,90048,622,43722,643,0001,029,0002,306,048
12Oct 3, 2023 21:3127,13948,767,99920,897,0002,985,0002,285,568