Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
protohackers
main
Top Level Namespace
Cipher
CipherType
Data
Error
Heartbeat
IAmCamera
IAmDispatcher
Int
Message
NumConverter
Plate
PlateSighting
Primes
MillerRabin
ProtoHackers
AckMessage
BudgetChat
CloseMessage
ConnectMessage
DataMessage
File
Folder
InsecureSocketLayer
ISLSession
JobCentre
Job
Manager
Request
Response
LineReversal
LRCPServer
LRMessage
LRSession
LRState
MeansToAnEnd
MobInTheMiddle
PrimeTime
SmokeTest
SpeedDaemon
Storage
UnusualDB
VoraciousCodeStorage
Response
SessionFileBackend
Ticket
WantHeartbeat
Built with Crystal 1.9.2
2023-10-07 11:02:34 UTC
class
ProtoHackers::PrimeTime
ProtoHackers::PrimeTime
Reference
Object
Defined in:
1_primetime.cr
Constructors
.new
(host, port)
Instance Method Summary
#handle_client
(client)
#is_prime?
(num : Number | BigFloat | BigInt)
Constructor Detail
def self.
new
(host, port)
#
[
View source
]
Instance Method Detail
def
handle_client
(client)
#
[
View source
]
def
is_prime?
(num : Number | BigFloat | BigInt)
#
[
View source
]