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:28matsuoka-601matsuoka-601Score: 27,586Success
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:2827,37586,138,78124,089,61702,314,240
2Jul 23, 2023 09:2827,45684,517,54424,161,55002,195,456
3Jul 23, 2023 09:2827,53182,306,39824,227,63002,220,032
4Jul 23, 2023 09:2827,57752,017,73620,224,0004,044,0002,494,464
5Jul 23, 2023 09:2827,58448,156,19819,217,0005,057,0002,363,392
6Jul 23, 2023 09:2827,58451,380,02020,229,0004,045,0002,502,656
7Jul 23, 2023 09:2827,58649,492,20619,219,0005,057,0002,310,144
8Jul 23, 2023 09:2827,59148,699,67821,245,0003,035,0002,387,968
9Jul 23, 2023 09:2827,61945,829,62619,242,0005,063,0002,498,560
10Jul 23, 2023 09:2827,62750,226,94421,273,0003,039,0002,392,064
11Jul 23, 2023 09:2827,64954,497,16620,276,0004,055,0002,428,928
12Jul 23, 2023 09:2827,71751,089,36819,310,0005,081,0002,269,184