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 21, 2021 13:42Yuriy LyfenkoYuriy LyfenkoScore: 44,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:4242,980100,076,25637,822,58302,220,032
2Jun 21, 2021 13:4243,092106,480,04337,921,38002,215,936
3Jun 21, 2021 13:4243,112104,500,85937,938,39402,211,840
4Jun 21, 2021 13:4244,69861,940,90738,326,0001,008,0002,375,680
5Jun 21, 2021 13:4244,78160,678,06038,397,0001,010,0002,363,392
6Jun 21, 2021 13:4244,79164,454,91938,406,0001,010,0002,269,184
7Jun 21, 2021 13:4244,81562,220,90138,426,0001,011,0002,269,184
8Jun 21, 2021 13:4244,82663,209,66038,436,0001,011,0002,273,280
9Jun 21, 2021 13:4244,85161,988,80938,457,0001,012,0002,269,184
10Jun 21, 2021 13:4244,85367,854,36939,471,00002,375,680
11Jun 21, 2021 13:4244,87264,808,26538,475,0001,012,0002,269,184
12Jun 21, 2021 13:4245,07463,178,38538,648,0001,017,0002,269,184