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 listDec 14, 2024 18:53MatthiasMatthiasScore: 11,854,539Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 18:5311,805,71310,437,286,56510,387,031,0001,996,0002,285,568
2Dec 14, 2024 18:5311,854,53910,484,201,67310,429,000,0002,994,0002,265,088
3Dec 14, 2024 18:5311,873,64810,495,706,75810,447,812,000998,0002,277,376