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 25, 2023 20:13gchebanovgchebanovScore: 42,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:1342,66664,459,25232,473,0005,073,0002,424,832
2Jul 25, 2023 20:1342,68162,136,53332,484,0005,075,0002,342,912
3Jul 25, 2023 20:1342,68359,425,32130,455,0007,106,0002,334,720
4Jul 25, 2023 20:1342,685114,214,10737,562,58102,179,072
5Jul 25, 2023 20:1342,71164,472,51233,523,0004,063,0002,338,816
6Jul 25, 2023 20:1342,75861,664,57330,509,0007,118,0002,383,872
7Jul 25, 2023 20:1342,77773,114,70931,540,0006,104,0002,338,816
8Jul 25, 2023 20:1342,80764,539,33032,580,0005,090,0002,347,008
9Jul 25, 2023 20:1342,88070,054,07931,615,0006,119,0002,392,064
10Jul 25, 2023 20:1343,36461,023,78830,127,0008,033,0002,306,048
11Jul 25, 2023 20:1343,403109,625,34238,194,25802,179,072
12Jul 25, 2023 20:1343,422104,095,01638,211,65502,183,168