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 16, 2024 20:51Ivan BessonovIvan BessonovScore: 31,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5130,80848,891,15525,103,0002,008,0002,289,664
2May 16, 2024 20:5130,92248,441,39925,196,0002,015,0002,289,664
3May 16, 2024 20:5130,95549,395,18826,232,0001,008,0002,277,376
4May 16, 2024 20:5130,96151,620,90426,237,0001,009,0002,289,664
5May 16, 2024 20:5130,96749,996,21026,242,0001,009,0002,289,664
6May 16, 2024 20:5131,01051,689,71626,279,0001,010,0002,269,184
7May 16, 2024 20:5131,13451,418,76527,398,00002,273,280
8May 16, 2024 20:5131,22348,686,84126,459,0001,017,0002,273,280
9May 16, 2024 20:5131,29349,304,85726,519,0001,019,0002,289,664
10May 16, 2024 20:5142,361106,538,33137,277,67002,252,800
11May 16, 2024 20:5142,45195,782,69837,357,08802,269,184
12May 16, 2024 20:5142,589110,137,06837,477,92602,256,896