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 23, 2024 16:42AnSaAnSaScore: 7,416,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2024 16:427,382,4446,569,953,4676,496,550,80802,252,800
2Jan 23, 2024 16:427,416,7436,584,516,1806,526,734,08702,252,800
3Jan 23, 2024 16:427,420,0106,586,948,3806,529,608,46902,244,608