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 12, 2024 16:48Ivan BessonovIvan BessonovScore: 43,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:4842,321106,601,00237,242,54302,252,800
2May 12, 2024 16:4842,440107,159,65637,346,97502,252,800
3May 12, 2024 16:4842,644102,133,87637,526,94202,260,992
4May 12, 2024 16:4843,34259,017,77537,138,0001,003,0002,277,376
5May 12, 2024 16:4843,44860,598,36536,222,0002,012,0002,289,664
6May 12, 2024 16:4843,46665,920,29037,244,0001,006,0002,289,664
7May 12, 2024 16:4843,51859,261,68437,289,0001,007,0002,289,664
8May 12, 2024 16:4843,53661,033,43338,312,00002,273,280
9May 12, 2024 16:4843,55860,139,39638,331,00002,289,664
10May 12, 2024 16:4843,59162,353,58737,351,0001,009,0002,289,664
11May 12, 2024 16:4843,60164,968,88738,369,00002,269,184
12May 12, 2024 16:4843,80758,035,35837,536,0001,014,0002,289,664