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 24, 2023 14:50gchebanovgchebanovScore: 39,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:5039,67771,125,80731,924,0002,992,0002,293,760
2Jul 24, 2023 14:5039,71958,445,29232,956,0001,997,0002,355,200
3Jul 24, 2023 14:5039,72055,474,24431,958,0002,996,0002,269,184
4Jul 24, 2023 14:5039,76557,243,93931,994,0002,999,0002,424,832
5Jul 24, 2023 14:5039,83154,539,34932,047,0003,004,0002,293,760
6Jul 24, 2023 14:5039,84466,087,87032,058,0003,005,0002,428,928
7Jul 24, 2023 14:5039,84460,205,01931,056,0004,007,0002,428,928
8Jul 24, 2023 14:5039,85656,606,15832,067,0003,006,0002,351,104
9Jul 24, 2023 14:5039,85761,962,32332,068,0003,006,0002,433,024
10Jul 24, 2023 14:5040,790109,621,12635,895,32602,285,568
11Jul 24, 2023 14:5040,879109,922,13335,973,76702,273,280
12Jul 24, 2023 14:5041,09798,216,68836,165,11802,277,376