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 26, 2021 20:24Yuriy LyfenkoYuriy LyfenkoScore: 37,394Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:2437,267106,104,09632,795,01902,191,360
2Jun 26, 2021 20:2437,32096,175,29032,841,23202,179,072
3Jun 26, 2021 20:2437,330103,165,45732,850,72602,195,456
4Jun 26, 2021 20:2437,37455,159,91231,893,000996,0002,334,720
5Jun 26, 2021 20:2437,38163,762,30431,899,000996,0002,523,136
6Jun 26, 2021 20:2437,39461,318,42631,910,000997,0002,531,328
7Jun 26, 2021 20:2437,39467,463,20330,913,0001,994,0002,334,720
8Jun 26, 2021 20:2437,45059,780,58129,960,0002,996,0002,334,720
9Jun 26, 2021 20:2437,50058,794,03231,000,0002,000,0002,527,232
10Jun 26, 2021 20:2437,51462,987,40231,012,0002,000,0002,334,720
11Jun 26, 2021 20:2437,53863,292,42832,032,0001,001,0002,531,328
12Jun 26, 2021 20:2437,64761,225,63730,118,0003,011,0002,334,720