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 listApr 24, 2024 11:18gchebanovgchebanovScore: 42,106Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2024 11:1841,91166,535,01034,889,0001,993,0002,445,312
2Apr 24, 2024 11:1841,91163,693,99534,889,0001,993,0002,285,568
3Apr 24, 2024 11:1841,93658,721,20134,910,0001,994,0002,285,568
4Apr 24, 2024 11:1841,93864,202,68135,908,000997,0002,285,568
5Apr 24, 2024 11:1841,95660,212,25935,896,0001,025,0002,285,568
6Apr 24, 2024 11:1842,06364,076,36035,015,0002,000,0002,285,568
7Apr 24, 2024 11:1842,10658,453,26936,052,0001,001,0002,285,568
8Apr 24, 2024 11:1842,11565,955,62135,058,0002,003,0002,449,408
9Apr 24, 2024 11:1842,14157,695,67135,080,0002,004,0002,449,408
10Apr 24, 2024 11:1842,90899,570,55537,758,78802,310,144
11Apr 24, 2024 11:1842,99494,495,35737,834,48202,179,072
12Apr 24, 2024 11:1843,136123,171,04637,959,67202,252,800