for i in range(2, int(n**.5)+1):
N[i*i::i] = z[:(n/i)-i+1]
return filter(None, N[2:])
| Contact Us
© 2022 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.