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 02:52Yuriy 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 02:5200000Error: expected "51260118483525 ", got "51261146227978 "
2Jun 18, 2021 02:5258,450110,583,24251,436,33402,220,032
3Jun 18, 2021 02:5258,492120,991,02451,472,59902,220,032
4Jun 18, 2021 02:5258,627131,899,56051,591,67202,228,224