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 listJan 30, 2025 12:08andrei445andrei445Score: 4,344,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 12:084,294,8003,803,883,3263,493,544,000285,880,0002,289,664
2Jan 30, 2025 12:084,302,9263,810,690,5843,492,686,000293,889,0002,277,376
3Jan 30, 2025 12:084,330,0983,836,154,8863,491,613,000318,873,0002,273,280
4Jan 30, 2025 12:084,333,2353,840,455,0623,495,310,000317,937,0002,277,376
5Jan 30, 2025 12:084,344,9753,856,753,9463,525,689,000297,889,0002,289,664
6Jan 30, 2025 12:084,355,7193,862,280,9803,500,117,000332,916,0002,289,664
7Jan 30, 2025 12:084,360,9013,863,308,6373,554,697,000282,896,0002,277,376
8Jan 30, 2025 12:084,371,7883,871,778,6823,519,329,000327,844,0002,277,376
9Jan 30, 2025 12:084,372,1853,874,910,2243,519,649,000327,874,0002,289,664