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 18, 2024 16:42Ivan BessonovIvan BessonovScore: 20,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 16:4219,61546,858,88615,231,0002,030,0002,289,664
2May 18, 2024 16:4219,63534,153,33115,247,0002,032,0002,310,144
3May 18, 2024 16:4219,65041,263,25115,258,0002,034,0002,301,952
4May 18, 2024 16:4219,65940,959,23315,265,0002,035,0002,289,664
5May 18, 2024 16:4219,67044,993,46815,274,0002,036,0002,289,664
6May 18, 2024 16:4219,68541,058,29415,285,0002,038,0002,289,664
7May 18, 2024 16:4220,33936,372,91115,910,0001,988,0002,289,664
8May 18, 2024 16:4220,44880,034,98017,994,15902,289,664
9May 18, 2024 16:4220,45141,869,07316,998,000999,0002,289,664
10May 18, 2024 16:4220,70333,935,10116,195,0002,024,0002,310,144
11May 18, 2024 16:4221,17595,383,20018,634,31202,277,376
12May 18, 2024 16:4221,23372,476,74618,685,18702,285,568