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 listDec 11, 2024 01:54zielajzielajScore: 22,293Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 01:5422,19936,626,41119,535,00002,269,184
2Dec 11, 2024 01:5422,22741,791,91218,531,0001,029,0002,351,104
3Dec 11, 2024 01:5422,27446,442,57319,601,00002,269,184
4Dec 11, 2024 01:5422,27842,362,77519,605,00002,342,912
5Dec 11, 2024 01:5422,29339,688,12319,618,00002,531,328
6Dec 11, 2024 01:5422,31442,785,30819,636,00002,342,912
7Dec 11, 2024 01:5422,36551,159,96619,681,00002,531,328
8Dec 11, 2024 01:5422,36940,615,22418,649,0001,036,0002,347,008
9Dec 11, 2024 01:5422,39144,479,47818,719,000985,0002,445,312