tool για αλλαγή root password σε πολλαπλά linux μηχανήματα;

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Sep 7 03:43:57 EEST 2007


On 2007-09-06 11:16, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> On 2007-09-05 21:16, Christos Nouskas <nouskas at gmail.com> wrote:
> >Ioannis Papadopoulos wrote:
> >>Christos Ricudis wrote:
> >>> Sto freshmeat 8a breis apeira ergaleiakia toy styl "ekteleste thn
> >>> tade entolh se 23497563902478823 mhxanhmata".
> >>
> >> O ari8mos einai tyxaios 'h keramid_rand() me allo seed?
> >
> > Oxi, autos einai prwtos. Se ligo 8a akolou8hsoun kai arrhtoi :p

> Hum...
>
> $ python
> Python 2.5.1 (r251:54863, Aug 31 2007, 16:31:58)
> [GCC 4.2.0 20070514 [FreeBSD]] on freebsd7
> Type "help", "copyright", "credits" or "license" for more information.
> >>> 23497563902478823. / 3
> 7832521300826275.0
> >>>

Πφφτ, αυτά παθαίνει όποιος γράφει email χωρίς να σκέφτεται.

Ναι όντως είναι πρώτος αριθμός.

Κανονικά θα 'πρεπε να χρησιμοποιήχω καμιά γλώσσα με καλύτερη ακρίβεια
και να αφιερώσω 1-2 λεπτά να ελέγξω πιο προσεκτικά τι γράφω :-)

% CL-USER> (defun primep (num)
%            (let ((div-list nil))
%              (loop for k from 2 to (+ 1 (ceiling (sqrt num)))
%                 do (if (zerop (rem num k))
%                      (push k div-list))
%               finally (return (values (null div-list) div-list)))))
% PRIMEP
% CL-USER> (compile 'primep)
% PRIMEP
% NIL
% NIL
% CL-USER> (time (primep 23497563902478823))
% Evaluation took:
%   25.752 seconds of real time
%   25.562284 seconds of user run time
%   0.168555 seconds of system run time
%   [Run times include 3.081 seconds GC run time.]
%   0 calls to %EVAL
%   0 page faults and
%   4,905,279,448 bytes consed.
% T		;prime check
% NIL		;list of divisors




More information about the Linux-greek-users mailing list