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 14:46Ivan BessonovIvan BessonovScore: 20,511Success
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 14:4619,73142,228,43515,321,0002,042,0002,289,664
2May 18, 2024 14:4619,78042,491,34516,383,0001,023,0002,289,664
3May 18, 2024 14:4619,80143,641,32616,400,0001,025,0002,310,144
4May 18, 2024 14:4619,80342,608,86116,402,0001,025,0002,289,664
5May 18, 2024 14:4619,85741,391,20216,447,0001,027,0002,412,544
6May 18, 2024 14:4620,47844,632,31216,019,0002,002,0002,289,664
7May 18, 2024 14:4620,51135,930,11816,045,0002,005,0002,289,664
8May 18, 2024 14:4620,54043,584,91816,067,0002,008,0002,289,664
9May 18, 2024 14:4620,63135,788,84016,138,0002,017,0002,289,664
10May 18, 2024 14:4621,83089,600,10919,210,31702,285,568
11May 18, 2024 14:4621,86489,592,95819,240,64002,301,952
12May 18, 2024 14:4622,184124,278,38219,522,26802,285,568