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 listMay 14, 2024 11:17Ivan BessonovIvan BessonovScore: 36,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 11:1732,01189,873,53628,169,73702,260,992
2May 14, 2024 11:1732,037100,349,22928,192,20202,252,800
3May 14, 2024 11:1732,250107,473,12928,379,72902,256,896
4May 14, 2024 11:1735,97659,063,50531,659,00002,289,664
5May 14, 2024 11:1735,98358,929,52030,644,0001,021,0002,273,280
6May 14, 2024 11:1735,99857,925,11930,657,0001,021,0002,277,376
7May 14, 2024 11:1736,02857,919,56530,683,0001,022,0002,387,968
8May 14, 2024 11:1736,04560,562,32830,697,0001,023,0002,289,664
9May 14, 2024 11:1736,24962,741,81829,906,0001,993,0002,289,664
10May 14, 2024 11:1736,24956,604,51929,906,0001,993,0002,269,184
11May 14, 2024 11:1736,25063,020,57129,907,0001,993,0002,289,664
12May 14, 2024 11:1736,25663,605,97130,908,000997,0002,289,664