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 5, 2024 16:13Ivan BessonovIvan BessonovScore: 48,449Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 16:1345,050112,939,44939,644,26602,260,992
2May 5, 2024 16:1345,083115,353,47939,672,60402,256,896
3May 5, 2024 16:1345,130108,721,28139,714,31002,260,992
4May 5, 2024 16:1348,29165,630,44941,485,0001,011,0002,273,280
5May 5, 2024 16:1348,36565,105,46441,548,0001,013,0002,289,664
6May 5, 2024 16:1348,43363,468,57941,607,0001,014,0002,289,664
7May 5, 2024 16:1348,44967,664,49041,620,0001,015,0002,289,664
8May 5, 2024 16:1348,46873,120,76842,652,00002,289,664
9May 5, 2024 16:1348,47567,399,32541,643,0001,015,0002,289,664
10May 5, 2024 16:1348,59073,923,95741,741,0001,018,0002,289,664
11May 5, 2024 16:1348,68869,014,22240,853,0001,992,0002,269,184
12May 5, 2024 16:1348,68968,645,31540,854,0001,992,0002,289,664