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 6, 2023 08:31matsuoka-601matsuoka-601Score: 18,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:3117,86833,077,85813,628,0002,096,0002,494,464
2Oct 6, 2023 08:3117,87032,543,42113,630,0002,096,0002,289,664
3Oct 6, 2023 08:3117,87233,354,88112,582,0003,145,0002,428,928
4Oct 6, 2023 08:3117,91044,525,24914,711,0001,050,0002,498,560
5Oct 6, 2023 08:3118,00360,154,56715,842,22802,248,704
6Oct 6, 2023 08:3118,01293,213,29615,850,54302,314,240
7Oct 6, 2023 08:3118,06036,586,44014,900,000993,0002,469,888
8Oct 6, 2023 08:3118,07432,503,38213,917,0001,988,0002,482,176
9Oct 6, 2023 08:3118,08041,008,72312,927,0002,983,0002,445,312
10Oct 6, 2023 08:3118,10744,927,40313,810,0002,124,0002,437,120
11Oct 6, 2023 08:3118,15636,767,76311,983,0003,994,0002,510,848
12Oct 6, 2023 08:3118,18577,776,07816,002,45302,191,360