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 listJul 23, 2023 09:29matsuoka-601matsuoka-601Score: 27,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 09:2927,39953,107,70120,093,0004,018,0002,289,664
2Jul 23, 2023 09:2927,41452,879,79421,109,0003,015,0002,498,560
3Jul 23, 2023 09:2927,41952,236,06621,113,0003,016,0002,322,432
4Jul 23, 2023 09:2927,42455,676,93020,111,0004,022,0002,273,280
5Jul 23, 2023 09:2927,43099,293,34524,138,57602,285,568
6Jul 23, 2023 09:2927,43450,389,83120,119,0004,023,0002,478,080
7Jul 23, 2023 09:2927,45192,501,85624,156,62202,293,760
8Jul 23, 2023 09:2927,46649,958,82920,142,0004,028,0002,326,528
9Jul 23, 2023 09:2927,48950,408,27620,159,0004,031,0002,277,376
10Jul 23, 2023 09:2927,49483,875,15624,194,62102,301,952
11Jul 23, 2023 09:2927,64157,065,80820,270,0004,054,0002,351,104
12Jul 23, 2023 09:2927,66651,743,83120,289,0004,057,0002,326,528