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 08:54Ivan BessonovIvan BessonovScore: 49,952Success
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 08:5449,491103,028,87743,551,70702,256,896
2May 5, 2024 08:5449,762109,672,81643,790,53202,256,896
3May 5, 2024 08:5449,784114,914,15843,809,99402,256,896
4May 5, 2024 08:5449,87376,361,29841,894,0001,994,0002,273,280
5May 5, 2024 08:5449,89566,852,86441,913,0001,995,0002,269,184
6May 5, 2024 08:5449,94871,544,63941,957,0001,997,0002,269,184
7May 5, 2024 08:5449,95266,887,55741,960,0001,998,0002,289,664
8May 5, 2024 08:5449,98368,098,86441,986,0001,999,0002,277,376
9May 5, 2024 08:5450,03666,237,97543,032,0001,000,0002,355,200
10May 5, 2024 08:5450,05366,627,63042,045,0002,002,0002,265,088
11May 5, 2024 08:5450,08467,314,21043,073,0001,001,0002,273,280
12May 5, 2024 08:5450,10768,071,66642,090,0002,004,0002,289,664