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 listFeb 20, 2024 03:35Huy Duc LeHuy Duc LeScore: 29,827Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 03:3529,60657,170,53625,051,0001,002,0002,289,664
2Feb 20, 2024 03:3529,63393,093,81526,077,29702,228,224
3Feb 20, 2024 03:3529,66149,281,59124,095,0002,007,0002,289,664
4Feb 20, 2024 03:3529,71154,312,64924,135,0002,011,0002,486,272
5Feb 20, 2024 03:3529,73789,966,29326,168,98002,220,032
6Feb 20, 2024 03:3529,81549,914,20124,219,0002,018,0002,502,656
7Feb 20, 2024 03:3529,82780,917,38626,247,56502,211,840
8Feb 20, 2024 03:3529,85654,333,20925,263,0001,010,0002,482,176
9Feb 20, 2024 03:3529,85848,391,83524,254,0002,021,0002,289,664
10Feb 20, 2024 03:3529,89249,948,65524,282,0002,023,0002,498,560
11Feb 20, 2024 03:3529,89749,473,04124,286,0002,023,0002,289,664
12Feb 20, 2024 03:3529,92350,983,45725,320,0001,012,0002,490,368