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 21, 2023 12:20matsuoka-601matsuoka-601Score: 43,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 12:2043,66164,077,01232,356,0006,066,0002,289,664
2Jul 21, 2023 12:2043,72563,606,10932,403,0006,075,0002,437,120
3Jul 21, 2023 12:2043,79266,130,79933,467,0005,070,0002,490,368
4Jul 21, 2023 12:2043,83565,063,30934,515,0004,060,0002,277,376
5Jul 21, 2023 12:2043,84460,541,66135,537,0003,046,0002,527,232
6Jul 21, 2023 12:2043,85060,979,09035,542,0003,046,0002,314,240
7Jul 21, 2023 12:2043,87860,804,87634,549,0004,064,0002,359,296
8Jul 21, 2023 12:2043,94163,369,64134,598,0004,070,0002,375,680
9Jul 21, 2023 12:2043,94963,971,71134,604,0004,071,0002,478,080
10Jul 21, 2023 12:2044,62495,794,62639,268,99402,236,416
11Jul 21, 2023 12:2044,833107,715,74839,452,65102,195,456
12Jul 21, 2023 12:2044,84895,533,14939,465,89902,195,456