|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
*nix 'dc' guru needed
hello
googling, i found this 'wurst' (german for sausage) Code:
2p3p[dl!d2+s!%0=@l!l^!<#]s#[s/0ds^]s@[p]s&[ddvs^3s!l#x0<&2+l.x]ds.x it's a reverse polish formula to print PRIMES using *nix /bin/dc so the cmd: (use bourn-sh, or mask metas) echo "$sausage" | dc will very fast AND endless print primes on stdout. i'm quite familiar to '[bd]c' and 'reverse-polish' but i cannot (in the exemple above) figure out, how to say: start at X and stop at Y (sure X and Y are integers, 1+X > 0 && X < Y) thanks for help ![]() |
|
#2
|
|||
|
|||
|
no 'dc' prof around ?
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > *nix 'dc' guru needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|