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 20, 2024 20:45Ivan BessonovIvan BessonovScore: 15,823Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:4515,31599,476,56313,477,16502,195,456
2May 20, 2024 20:4515,37588,587,60813,529,98802,256,896
3May 20, 2024 20:4515,80228,760,58711,920,0001,986,0002,285,568
4May 20, 2024 20:4515,80833,371,50511,924,0001,987,0002,351,104
5May 20, 2024 20:4515,80933,510,13512,919,000993,0002,342,912
6May 20, 2024 20:4515,80928,644,43511,925,0001,987,0002,281,472
7May 20, 2024 20:4515,82341,752,10512,930,000994,0002,289,664
8May 20, 2024 20:4515,83837,617,41511,946,0001,991,0002,289,664
9May 20, 2024 20:4515,87033,246,25711,971,0001,995,0002,289,664
10May 20, 2024 20:4515,87534,924,09911,975,0001,995,0002,338,816
11May 20, 2024 20:4515,89037,994,74311,986,0001,997,0002,338,816
12May 20, 2024 20:4515,93698,026,34714,023,68002,191,360