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 8, 2024 13:59Ivan BessonovIvan BessonovScore: 48,398Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 13:5943,789103,580,73638,534,47102,260,992
2May 8, 2024 13:5943,831100,955,84638,571,26302,260,992
3May 8, 2024 13:5943,932110,128,41838,660,22002,256,896
4May 8, 2024 13:5948,19370,891,89742,410,00002,289,664
5May 8, 2024 13:5948,21867,609,63942,432,00002,289,664
6May 8, 2024 13:5948,37766,350,70641,559,0001,013,0002,289,664
7May 8, 2024 13:5948,39865,117,44341,576,0001,014,0002,289,664
8May 8, 2024 13:5948,42766,559,19341,602,0001,014,0002,285,568
9May 8, 2024 13:5948,43364,220,71941,607,0001,014,0002,281,472
10May 8, 2024 13:5948,45664,563,93042,641,00002,269,184
11May 8, 2024 13:5948,48271,118,35141,649,0001,015,0002,273,280
12May 8, 2024 13:5948,50668,938,68241,669,0001,016,0002,289,664