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 29, 2024 17:40zielajzielajScore: 3,668Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 17:403,59818,850,4881,055,0002,111,0002,273,280
2Dec 29, 2024 17:403,60116,970,8141,056,0002,113,0002,457,600
3Dec 29, 2024 17:403,60519,501,6591,057,0002,115,0002,465,792
4Dec 29, 2024 17:403,62821,806,2131,064,0002,129,0002,457,600
5Dec 29, 2024 17:403,66824,056,1541,076,0002,152,0002,465,792
6Dec 29, 2024 17:403,71724,457,6733,271,00002,273,280
7Dec 29, 2024 17:403,87321,559,5002,272,0001,136,0002,535,424
8Dec 29, 2024 17:403,90820,747,3763,439,00002,469,888
9Dec 29, 2024 17:404,72320,750,7762,078,0002,078,0002,281,472