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 21:22Yuriy LyfenkoYuriy LyfenkoScore: 44,575Success
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 21:2239,31784,182,06634,598,69702,211,840
2Jun 26, 2021 21:2239,34788,610,31934,625,64502,224,128
3Jun 26, 2021 21:2239,41187,514,77734,681,96602,224,128
4Jun 26, 2021 21:2244,38972,318,01237,059,0002,003,0002,486,272
5Jun 26, 2021 21:2244,44971,714,19037,110,0002,005,0002,269,184
6Jun 26, 2021 21:2244,49565,644,65238,152,0001,004,0002,269,184
7Jun 26, 2021 21:2244,57565,198,59538,221,0001,005,0002,269,184
8Jun 26, 2021 21:2244,58168,411,04437,220,0002,011,0002,269,184
9Jun 26, 2021 21:2244,58969,159,39337,226,0002,012,0002,269,184
10Jun 26, 2021 21:2244,61567,290,82837,248,0002,013,0002,269,184
11Jun 26, 2021 21:2244,67562,587,25339,314,00002,269,184
12Jun 26, 2021 21:2244,72266,265,78937,337,0002,018,0002,375,680