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 17, 2021 17:14Yuriy LyfenkoYuriy LyfenkoScore: 677,990Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 17:14676,805659,671,676595,588,23102,244,608
2Jun 17, 2021 17:14677,114648,933,271595,860,31002,244,608
3Jun 17, 2021 17:14677,505673,461,031596,203,96802,232,320
4Jun 17, 2021 17:14677,965668,575,630596,609,14902,228,224
5Jun 17, 2021 17:14677,990670,058,748596,631,28602,236,416
6Jun 17, 2021 17:14678,033670,220,350596,668,81102,244,608
7Jun 17, 2021 17:14679,736671,052,575598,167,49402,232,320
8Jun 17, 2021 17:14681,035651,950,017599,310,52502,228,224
9Jun 17, 2021 17:14681,120659,723,074599,385,54502,232,320