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 listJul 25, 2023 20:29gchebanovgchebanovScore: 33,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:2933,337101,405,52429,336,40002,211,840
2Jul 25, 2023 20:2933,457106,901,73629,441,74002,215,936
3Jul 25, 2023 20:2933,50149,598,74628,465,0001,016,0002,375,680
4Jul 25, 2023 20:2933,55657,540,41429,529,00002,289,664
5Jul 25, 2023 20:2933,60951,773,39127,537,0002,039,0002,289,664
6Jul 25, 2023 20:2933,62757,486,80028,572,0001,020,0002,281,472
7Jul 25, 2023 20:2933,67650,636,84427,592,0002,043,0002,289,664
8Jul 25, 2023 20:2933,69951,076,82728,633,0001,022,0002,363,392
9Jul 25, 2023 20:2933,71657,126,80328,647,0001,023,0002,289,664
10Jul 25, 2023 20:2933,72258,647,53428,616,0001,059,0002,363,392
11Jul 25, 2023 20:2933,76459,627,54728,688,0001,024,0002,289,664
12Jul 25, 2023 20:2933,89598,036,42029,827,16202,215,936