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 19:58Ivan BessonovIvan BessonovScore: 26,056Success
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 19:5826,01650,333,34920,904,0001,990,0002,289,664
2May 16, 2024 19:5826,01948,092,96520,906,0001,991,0002,289,664
3May 16, 2024 19:5826,02050,070,30320,907,0001,991,0002,289,664
4May 16, 2024 19:5826,02751,999,83120,913,0001,991,0002,277,376
5May 16, 2024 19:5826,02750,886,05821,909,000995,0002,273,280
6May 16, 2024 19:5826,05251,043,90120,933,0001,993,0002,269,184
7May 16, 2024 19:5826,05647,282,70920,936,0001,993,0002,289,664
8May 16, 2024 19:5826,09844,957,76320,969,0001,997,0002,273,280
9May 16, 2024 19:5826,16445,650,47521,022,0002,002,0002,289,664
10May 16, 2024 19:5827,99088,938,38024,630,78002,256,896
11May 16, 2024 19:5828,08190,958,92124,710,91602,260,992
12May 16, 2024 19:5828,08898,868,82924,717,62202,269,184