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 listSep 5, 2022 18:29Eugene ZhydzetskiEugene ZhydzetskiScore: 738,435Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2022 18:20730,894699,975,619643,186,69202,199,552
2Sep 5, 2022 18:29732,935707,828,860644,982,84302,203,648
3Sep 5, 2022 18:20735,732709,563,368647,444,04502,191,360
4Sep 5, 2022 18:29738,435703,564,376649,823,09602,179,072
5Sep 5, 2022 18:20738,759709,017,792650,107,78402,191,360
6Sep 5, 2022 18:29741,650707,466,389652,651,87902,191,360