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 listJun 18, 2021 03:01Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 03:0200000Error: expected "50625809558582 ", got "50626071887212 "
2Jun 18, 2021 03:0200000Error: expected "51090726753819 ", got "51090998847797 "
3Jun 18, 2021 03:0158,313116,408,90951,315,82602,224,128
4Jun 18, 2021 03:0158,365116,815,78751,361,53702,220,032
5Jun 18, 2021 03:0158,376128,001,36951,371,12302,224,128
6Jun 18, 2021 03:0158,428113,377,63351,416,69802,220,032
7Jun 18, 2021 03:0158,466114,247,38851,449,90002,220,032
8Jun 18, 2021 03:0158,539119,146,07551,514,46402,211,840