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 listDec 28, 2022 06:26Robert BurkeRobert BurkeScore: 23,188Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:2619,58876,183,15917,237,58402,207,744
2Dec 28, 2022 06:2619,66970,954,57017,308,88502,211,840
3Dec 28, 2022 06:2619,67275,864,14017,311,36402,203,648
4Dec 28, 2022 06:2623,07444,037,00319,290,0001,015,0002,367,488
5Dec 28, 2022 06:2623,14441,253,65520,367,00002,281,472
6Dec 28, 2022 06:2623,16848,093,36920,388,00002,465,792
7Dec 28, 2022 06:2623,18847,513,36320,405,00002,375,680
8Dec 28, 2022 06:2623,21038,987,38419,404,0001,021,0002,379,776
9Dec 28, 2022 06:2623,27746,024,97020,484,00002,465,792
10Dec 28, 2022 06:2623,31036,716,71220,513,00002,281,472
11Dec 28, 2022 06:2623,33641,355,61420,536,00002,465,792
12Dec 28, 2022 06:2623,35143,389,46919,522,0001,027,0002,281,472