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 25, 2024 22:26zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 22:1800000Error: expected "50946877077028 ", got "50946877076985 "stderr
2Dec 25, 2024 22:2600000Error: expected "51370472875796 ", got "51371052482097 "stderr
3Dec 25, 2024 22:2700000Error: expected "51367364354348 ", got "51367400645541 "stderr
4Dec 25, 2024 22:274,05720,116,6173,570,00002,461,696
5Dec 24, 2024 22:194,07019,146,9922,388,0001,194,0002,453,504
6Dec 24, 2024 22:194,07419,071,5702,390,0001,195,0002,461,696
7Dec 24, 2024 22:214,07418,707,8722,390,0001,195,0002,342,912
8Dec 24, 2024 22:194,11518,778,1132,414,0001,207,0002,457,600
9Dec 25, 2024 22:274,15919,406,8242,440,0001,220,0002,297,856
10Dec 25, 2024 22:264,18024,201,1572,452,0001,226,0002,453,504
11Dec 24, 2024 22:214,18116,649,8122,453,0001,226,0002,297,856
12Dec 25, 2024 22:264,18418,838,8652,455,0001,227,0002,297,856
13Dec 25, 2024 22:264,18621,377,6062,456,0001,228,0002,457,600
14Dec 25, 2024 22:274,19020,459,8612,458,0001,229,0002,297,856
15Dec 24, 2024 22:214,25319,463,2943,743,00002,457,600